1,485 pts.
 AS/400
Can we read a record in reverse order using READP otherwise what is the use of READP and READPE ?

Software/Hardware used:
ASKED: August 18, 2012  6:29 AM
  Help
 Approved Answer - Chosen by Sureyz (Question Asker)

Yes, you'll need to position beyond the record that you want to read, this is often done with the SETGT command.

ANSWERED:  Aug 18, 2012  8:03 PM (GMT)  by Sureyz

 
Other Answers:
Last Wiki Answer Submitted:  August 18, 2012  6:29 am  by  Sureyz   1,485 pts.
Latest Answer Wiki Contributors: 
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Yes, READP is used to read a file in reverse order. Tom

 108,055 pts.

 

Wait .. we’re you refering to reading a physical file or a subfile?     You’ve got a keyword of Subfiles.  I’ve never seen a subfile accessed with READP or a READ, only with a READC.     Or you can access a subfile record with CHAIN on the RRN.Phil

 44,150 pts.

 

Valid WORKSTN File Operations doesn’t list READP for workstation files. A CHAIN with RRN would probably be the only choice.
 
READs aren’t unheard of for subfiles, though they’re not common.
 
Tom

 108,055 pts.

 

we’re you refering to reading a physical file or a subfile?Hi Phil..I’m refering to read a physical file only.ThanksSurey.

 1,485 pts.