Zitat Zitat von harkne Beitrag anzeigen
Mache ich dann noch einen READPE bekomme ich %EOF der Satz 1 ist aber gesperrt.
Seltsam, denn in der Dokumentation zu READPE (V5R1) steht folgendes:

If the file being read is defined as update, a temporary lock on the prior record is requested and the search argument is compared to the key of that record. If the record is already locked, the program must wait until the record is available before obtaining the temporary lock and making the comparison. If the comparison is unequal, a BOF condition occurs, and the temporary record lock is removed. If no lock ('N' operation extender) is specified, a temporary lock is not requested.