by Robert Sample » Mon May 24, 2010 4:42 am
If the file is sequential, the answer is no -- you must read every record to reach the last record.
If the file is VSAM KSDS, being accessed from CICS, and you put a HIGH-VALUES record into the file, you can use READPREV to get to the last record. Batch VSAM access does not support read previous, though, so if you're using a batch program then you must, again, read every record to read the last record.