AS/400

2375 pts.
Tags:
Subfile
subfile keyword
Can we read a record in reverse order using READP otherwise what is the use of READP and READPE ?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Yes, READP is used to read a file in reverse order. Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Yes, you'll need to position beyond the record that you want to read, this is often done with the SETGT command.
    49,600 pointsBadges:
    report
  • philpl1jb
    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
    49,600 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Sureyz
    we’re you refering to reading a physical file or a subfile?Hi Phil..I'm refering to read a physical file only.ThanksSurey.
    2,375 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following