|
Tim Kredlo wrote: > ... > I had sent the following to the list but did not get an answer as why > %Status was NOT changed from '11' to '0' in this situation: > Bob Cozzi had indicated that Barbara had provided him with some insight as > to when %Status is changed. > It seems that the manual is not correct, or that I am misunderstanding > 'before any operation with an 'E' extender specified begins', or what status > = 11 actually means. > If you are reading to EOF and then doing a READP(E), %status should be getting set to 0 before the READP and then back to 11 because of the READP. If you read to EOF, you have to reposition the cursor before you can READ or READP again. You don't get a status of 11 when you have successfully read the last record - you get it when you have tried to read _past_ the last record.
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.