And I think it's more on the 'READNEXT' and the 'FROM' that I've seen the
issue, by the way...

Any place in BASIC (not the ECL-level stuff) seems to not like the 'actual
numeric' -- but a variable works fine.

YMMV -- just something I've seen.

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of David Wolverton 
Sent: Monday, September 24, 2012 11:53 AM
To: 'U2 Users List'
Subject: Re: [U2] Unidata 7.1.16 Multiple Active Select Lists

I've found that "TO 8" does not work...

HOWEVER...

LISTNO = 8
TO LISTNO

Works fine... always meant to ask Rocket why I have that issue, but just
worked around it as shown.

DW

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Baker Hughes
Sent: Monday, September 24, 2012 11:49 AM
To: 'U2 Users List'
Subject: Re: [U2] Unidata 7.1.16 Multiple Active Select Lists

Can you use SELECT yourfile WITH whatever TO 8 {specific list number} in the
master process, and let your SUBR virtual field default to list 0 {zero}?

The other option could be to do a READLIST within the SUBR function and
reset the list when RETURNing, but this could be onerous in terms of
processing speed.

HTH
-Baker



-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Monday, September 24, 2012 11:43 AM
To: U2 Users List
Subject: [U2] Unidata 7.1.16 Multiple Active Select Lists

How does one manage multiple active select lists in Unidata?  I could have
sworn I've done this before, but for some reason it's not working at all as
I recall.

I have this SUBR(..) type field in file A that selects records from file B
to calculate an aggregate.  This works fine when listing file A and showing
the field.  However, if there's an active select list when file A is listed
with this field, the select statement in my SUBR(..) is consuming the active
select list 0 and returning incorrect results.

My subroutine is $BASICTYPE "U" and is selecting records using the lower
case select and selecting to active list #3.  It then processes from list
#3 and returns its result.  I've tried using the RTNLIST and PASSLIST
options on the EXECUTE statements and I get a "Misuse of Reserved Word
'PASSLIST'" or "Misuse of Reserved Word 'RTNLIST'".  I've tried UDTEXECUTE
with no compilation errors but also no improvement on the problem.  I've
even tried MDPERFORM but I get the misuse errors with the RTNLIST and
PASSLIST options.  Oddly enough, removing $BASICTYPE "U" I don't get an
error on MDPERFORM but I can't READNEXT from a numbered select without the
$BASICTYPE "U".

How should I structure this SUBR(..) so that it does not consume list 0 when
selecting to list 3?
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

________________________________

This communication, its contents and any file attachments transmitted with
it are intended solely for the addressee(s) and may contain confidential
proprietary information.
Access by any other party without the express written permission of the
sender is STRICTLY PROHIBITED.
If you have received this communication in error you may not copy,
distribute or use the contents, attachments or information in any way.
Please destroy it and contact the sender.
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to