By default, selecting uses the default of select list 0.
In the 2nd/internal subroutine, have the SELECT use a different select # and
then read from that select #.
For example:
STMT = "SELECT WIGETS TO 4"
EXECUTE STMT
LOOP
WHILE READNEXT KEY FROM 4
(your code)
REPEAT
John Israel
Sr. Programm
I would add to the wrapper to SAVE all the UniData Internal Variables then
call your subroutine, and then RESTORE all the Variables.
Example:
U.ID = @ID
U.DICT = @DICT
U.RECORD = @RECORD
READLIST U.SEL THEN SEL.FLAG = @TRUE
(Any other COMMON variables that might be modified)
...
DO YOUR CAL
iday, April 24, 2009 8:22 AM
To: 'u2-users@listserver.u2ug.org'
Subject: RE: [U2] I-descriptor subroutine / SELECT question
By default, selecting uses the default of select list 0.
In the 2nd/internal subroutine, have the SELECT use a different select # and
then read from that select #.
For
John wrote:
> Hi all,
>
> I was asked to create an I-descriptor friendly wrapper subroutine for a
> subroutine that has one input argument and 10 outputs. Turns out this
> subroutine calls another subroutine that executes a select (against a
> different file).
>
> Active select -> LIST FILE-1 I-DE
sers@listserver.u2ug.org
Subject: RE: [U2] I-descriptor subroutine / SELECT question
I would add to the wrapper to SAVE all the UniData Internal Variables then
call your subroutine, and then RESTORE all the Variables.
Example:
U.ID = @ID
U.DICT = @DICT
U.RECORD = @RECORD
READLIST U.SEL THEN SEL.FLAG = @
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] I-descriptor subroutine / SELECT question
John wrote:
> Hi all,
>
> I was asked to create an I-descriptor friendly wrapper subroutine for a
> subroutine that has one input argument and 10 outputs. Turns out this
> subroutin
srael, John R.
Sent: Friday, April 24, 2009 8:22 AM
To: 'u2-users@listserver.u2ug.org'
Subject: RE: [U2] I-descriptor subroutine / SELECT question
By default, selecting uses the default of select list 0.
In the 2nd/internal subroutine, have the SELECT use a different select # and
then read fro
Message-
From: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Jeff Butera
Sent: Friday, April 24, 2009 9:01 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] I-descriptor subroutine / SELECT question
John wrote:
> Hi all,
>
> I wa
Jeff Butera wrote:
However, I've got to say that I cringe whenver someone proposes using an
I-decriptor that, in turn, is performing it's own SELECT under the hood.
This is really poor from both a design and performance point of view -
there's got to be a more methodical means to get the data