Read previous operation

This operation gets the previous record on the keyed sequence access path.

If a record format name is specified, this operation gets the previous record on the keyed sequence access path that matches the record format. The current position in the file is used to locate the previous record. (The READP statement in the RPG/400® language and the READ PRIOR statement in the COBOL/400® language are examples of this operation.)