READ and READ(E) differ in RPGLE opcode

3,790 pts.
Tags:
RPGLE opcode
1) what the different between read and read(e) in rpgle opcode.
2) what the different between write and write(e) in rpgle opcode..
if you have any scenario, show me....


Software/Hardware used:
as400 v5r3
ASKED: December 26, 2011  3:36 PM
UPDATED: March 5, 2012  3:52 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

To handle exceptions (program status codes 401-421, 431, or 432), either the operation code extender ‘E’ or an error indicator ER can be specified, but not both. For more information on error handling, see Program Exception/Errors.

Discuss This Question: 9  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
  • philpl1jb
    You haven't done your share. Try: rpg programmers guide, search for (e) Try GOOGLE AS/400 RPGLE "READ(e)" Ask questions after you have made a serious effort on your own.
    48,545 pointsBadges:
    report
  • pdsathishkumar
    can we use READ(E) and WRITE(E) in PF using RPGLE program....
    3,790 pointsBadges:
    report
  • deepu9321
    Yeah, We can use READ(E) & WRITE(E). Only the difference between READ & READ(E) is for handling the exception. Pradeep.
    3,605 pointsBadges:
    report
  • pdsathishkumar
    your r correct Mr. Pradeep, while i using the read opcode, i got one error cpf4737.. after i using read(e) opcode, error didn't show.... if you have any scenario for pf in rpgle using read(e) or write(e)
    3,790 pointsBadges:
    report
  • deepu9321
    if you have any scenario for pf in rpgle using read(e) or write(e) I didnt get you exactly, Are you looking for examples or You got the required result already? Pradeep.
    3,605 pointsBadges:
    report
  • philpl1jb
    sathish This will be the end of my participation on your questions. You do too little and expect too much. I'm sure you will find others to do your work. Phil
    48,545 pointsBadges:
    report
  • pdsathishkumar
    Alright Mr. Phil, because i am beginner of AS400.. i have lot of interest in AS400.. i searched in Google about my topic... i didn't get clear solution... so only i asked and i want an exact suggestion... so, don't mistake me.....
    3,790 pointsBadges:
    report
  • TomLiotta
    while i using the read opcode, i got one error cpf4737.. after i using read(e) opcode, error didn’t show…. There are actually three forms of the READ op-code -- READ by itself, READ with an error indicator and READ with the (E) extender. Did you try all three? Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Neither the op-code extender nor an ER indicator is required for handling exceptions. However, both of those can make exception-handling easier and/or more visible. -- Tom
    125,585 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