Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

PN5_60647

Description

SP-ASSIGN resets list pointer 


Previous Release Behavior

When generic_universe = true or generic_prime = true, EXECUTE'ing SP-ASSIGN command would reset the list pointer. 

e.g. 

1) set/export JBCEMULATE=universe

2) Run this program:

0001 EXECUTE 'SELECT MD SAMPLE 10' CAPTURING quiet
0002 FOR x = 1 TO 10
0003     READNEXT id ELSE EXIT
0004     CRT x, id
0005     EXECUTE "SP-ASSIGN" CAPTURING quiet
0006 NEXT x

READNEXT would always return only the first item in the select list, looping forever. 


Current Release Behavior

READNEXT does not reset the list pointer when SP-ASSIGN is EXECUTE'd. 

Was this article helpful?