How to use read command in CL program

Tags:
AS/400
CL Program
How do I use read Command in CL programming?
1

Answer Wiki

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

To read file data in a CL program use the RCVF command to read one record at a time.

Discuss This Question: 4  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.
  • CharlieBrowne

    You must Declare the file you want to read.

    DCLF

    62,385 pointsBadges:
    report
  • mahalakshmi43

    I WANT FULL FORMAT EG DCL VAR(&FILE) LEN(10) ('ICFTLUP...')

    Whether it is correct or not

    75 pointsBadges:
    report
  • mahalakshmi43
    we use DCLF OR DCL just check and tell me
    75 pointsBadges:
    report
  • TheRealRaven
    See the help text for the command, or review the CL Programming topic in the Information Center. The documentation should be where you look for simple information.

    There is no "read" command. The RCVF command can read a record from a file, and that's the documentation you should review.

    ILE CL can call the read() API if needed.
    35,920 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.

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

Following

Share this item with your network: