Posted by Grant Foraker on May 20, 2005 at 12:32:37:
C2K5.354, CFAM, CS32 on development laptop.
While writing a fixit program that has a file open on two LUN's, I got a key from the KEY function of a just deleted record.
LUN 2 is the driver. When I hit a particular record, I do a GOSUB where LUN 3 is used to find and delete a record that may be a few records before or after the LUN 2 record. If the deleted LUN 3 record is the record immediately following the LUN 2 record, the KEY function gives me the deleted key. My workaround was to save the LUN 2 key and do a POSITION (2) before returning to the KEY function.