-sr command line option
Richard Kreiss
rkreiss at gccconsulting.net
Fri Aug 7 14:37:03 PDT 2015
Something almost obvious to keep in mind.
I have been rewriting a program which uses a system call to generate an output in another file.
The output program uses a getnext loop to move through record and the print a form.
>From the input program, the master code for this output is gotten. A lookup is done on an automatic index and the record number of the first record for that master code is gotten.
That value is used to set the record to use for printing the form.
When the program hit the portion where the lookup is done and getnext is supposed to get the next record, it doesn't. As it was 2 AM, my head wasn't clear. I had not realized that the record I was in was locked and therefore getnext could not move off the record. Once I realize this, I modified the program to subtract 1 from the record number gotten. This would be a record for a different person based on the index and therefore all the lookups worked as expected and the form printed.
Richard Kreiss
More information about the Filepro-list
mailing list