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. Programmer/Analyst Dayton Superior Corporation 721 Richard St. Dayton, OH 45342 937-866-0711 x44380 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jon Wells Sent: Friday, April 24, 2009 9:04 AM To: [email protected] Subject: [U2] I-descriptor subroutine / SELECT question 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-DESC -> I-DESC calls wrapper -> wrapper calls subroutine -> called subroutine tries to execute select against FILE-2. Is there any way to get around the active select so the query against FILE-2 works correctly? BTW - We're running Unidata 7.1 Thanks, *-----------------------------------------------------------* Jon Wells Database Administrator Beloit College Information Services & Resources Beloit, Wisconsin 608-363-2290 [email protected] 608-363-2100 (fax) *-----------------------------------------------------------* ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
