|
I'm encountering a strange problem. I'm seeing my reade reading the same record when rolbk is executed. Is this normal for rolbk to cause this reade behavior? Below is a sample code and program will go into infinite loop (reade reading the same record over and over again). DDS for MYFILE: R MYFILEFMT MYFILEKEY 3 MYFILEDATA 3 K MYFILEKEY Added the following two records to MYFILE and run the program below XXX AAA XXX BBB RPG program: FMYFILE UF E K DISK commit C eval MYFileKey = 'XXX' C MYFileKey setll MYFILE C MYFilekey reade(e) MYFILE C dow not %eof C if 'a' = 'b' c update MYFILEfmt C endif C rolbk C MYFileKey reade(e) MYFILE C enddo C eval *inlr = *on
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.