My 2 cents on this regardless of platform is to take the low road. Sure you can set up tricky DATA/EXECUTE statements that you hope will work but somewhere along the way they will get out of sync.
I test things like consecutive selects, ie First Select for the majority and the second to fine tune (there are effeciency reasons). But if the first one fails, I don't want the second to process 'alone' and get far more (or zero) items than expected. Proc had the IF E = 401 blah, blah intermediate tests. There is a lot of status, Returning and, Capturing clauses to consider. Assume the worst and program around unvalidated data and the good stuff will prevail. Mark Johnson ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <u2-users@listserver.u2ug.org> Sent: Monday, February 13, 2006 11:54 AM Subject: [U2] Question about execute and stacked data. > This is on universe 10.0.10 on windows xp. > If you have stacked data, it will be executed after an EXECUTE, so: > 001 DATA 'WHO' > 002 EXECUTE 'SELECT VOC' > Will select the voc to list 0, then execute WHO. > If the command in EXECUTE doesn't yield a list, then the data isn't > executed, so > 001 DATA 'WHO' > 002 EXECUTE 'GET-LIST VOCCRAP' ;* assuming you don't have a list named > voccrap > 003 INPUT A > 004 CRT A > The GET-LIST doesn't return a list, so the WHO stays stacked and gets > picked up by the INPUT later. > > Now here's the problem/question. > Suppose you have a basic program that creates a list, for example: > 001 L='A':@AM:'B' > 002 SELECTN L TO 0 > Saved and cataloged as MY.LIST.PROG > And change the test program above to > 001 DATA 'WHO' > 002 EXECUTE 'MY.LIST.PROG' > 003 CRT @SELECTED > The WHO does not execute, even though the basic program creates a list. > You can fiddle with the VOC catalog entries adding 'K' to attribute 4 so > that you can see the list created by running the program from TCL. > So the question is, what magic does a basic program need to do so that > it can create a list and participate in the serial execution of stacked > data? > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.375 / Virus Database: 267.15.6/258 - Release Date: > 2/13/2006 > ------- > u2-users mailing list > u2-users@listserver.u2ug.org > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/