Finding particular member data in RPG

225 pts.
Tags:
AS/400
I have a physical file(EXTPF) it contains one member(mbr1) how to read that particular member data in RPG. I wrote a code for that but i got CPF4102 error please rectify it A UNIQUE A R EXTPFREC A NUMBER 10P A NAME 10A A ADDRESS 10A A K NUMBER Fextpf if e k disk extmbr('mbr1') /free read extpf; dow not %eof; dsply number; dsply name; dsply address; read extpf; enddo; *inlr=*on; /end-free

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: 6  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
    There is no EXTPF physical file with member MBR1 in a library that is available to the program. If such a file exists on the system, then either ensure that the library is available in the job or direct the program to open the file from the correct library. -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    If there is only one member you do not need the extmbr . Use Caps extmbr("MBR1') Check the job log for more details.
    50,505 pointsBadges:
    report
  • TomLiotta
    Yes, Phil is right. He catches a lot of details like quoted values in the wrong case. The name should be 'MBR1' rather than 'mbr1'. -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    A journey of a thousand miles begins with a single step. Lao-tzu, The Way of Lao-tzu
    50,505 pointsBadges:
    report
  • philpl1jb
    50,505 pointsBadges:
    report
  • TomLiotta
    Detail clarification:   Use Caps extmbr('MBR1')...   Use upper-case (caps) if the name is in upper-case, which it almost certainly is. But names can use lower-case. The specification must match the case of the name.   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