There has to be a mechanism to transfer the list from jQL to the BASIC code. RTNLIST is just one way to do the transfer.
Another way would be: EXECUTE "GET-LIST TEMP" READNEXT ID FROM 0 ELSE CRT "ALL DONE" ; STOP iow, use the 'default' select-list, which is what happens if you were to execute that same set of statements from a jShell and then run a program that does the 'READNEXT ID'. Dan On Sat, Jun 7, 2014 at 6:58 PM, Richard Kann <[email protected]> wrote: > Funny, I do it the other way and it does work but that is on Jbase 3.x. > > > On 6/7/2014 4:34 PM, Marc wrote: > > Thanks, Dan, that works. For my continuing education...WHY does that work? > > Marc > > On Saturday, June 7, 2014 3:54:08 PM UTC-4, Daniel Klein wrote: >> >> EXECUTE "GET-LIST TEMP" RTNLIST TEMPLIST >> READNEXT ID FROM TEMPLIST ELSE CRT "ALL DONE" ; STOP >> >> -.. .- -. >> >> >> On Sat, Jun 7, 2014 at 12:48 PM, Marc <[email protected]> wrote: >> >>> Hi all! >>> >>> Have a confusing coding problem that I can't figure out. >>> >>> In a program, I have: >>> >>> EXECUTE "SSELECT FILE.NAME BY INV#" >>> EXECUTE "SAVE-LIST TEMP" (because I need to use the same sselect later >>> in the program) >>> EXECUTE "GET-LIST TEMP" >>> READNEXT ID ELSE CRT "ALL DONE" ; STOP >>> >>> The program properly executes the SSELECT, the SAVE-LIST and the >>> GET-LIST, but the READNEXT exits with the ALL DONE message without seeing >>> any of the item list. An EDIT-LIST done immediately after the program >>> fails shows the TEMP list correctly populated! >>> >>> What am I missing? >>> >>> Thanks for any assistance... >>> Marc Zitcer >>> -- >>> -- >>> IMPORTANT: T24/Globus posts are no longer accepted on this forum. >>> >>> To post, send email to [email protected] >>> To unsubscribe, send email to [email protected] >>> For more options, visit this group at http://groups.google.com/ >>> group/jBASE?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "jBASE" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > -- > IMPORTANT: T24/Globus posts are no longer accepted on this forum. > > To post, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit this group at > http://groups.google.com/group/jBASE?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "jBASE" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > > > -- > -- > IMPORTANT: T24/Globus posts are no longer accepted on this forum. > > To post, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit this group at > http://groups.google.com/group/jBASE?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "jBASE" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- IMPORTANT: T24/Globus posts are no longer accepted on this forum. To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en --- You received this message because you are subscribed to the Google Groups "jBASE" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
