CLLE File Declaration

5 pts.
Tags:
CLLE
CLLE DSPF
CLLE File Declaration
PF
Can display File and PF be declared in a CLLE program

Answer Wiki

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

Yes, you can declare files with the DCLF command. You can read them with the RCVF command.

For a display file, use the SNDRCVF command to output the screen format to the screen.

—————————————————————

Specifically, if you have a *DSPF SIMPLEDSPF with field CHAR defined and a PF SIMPLEFILE with field CHAR defined then you can:

<pre>
PGM
DCLF FILE(SIMPLEDSPF) OPNID(DSPFILE)
DCLF FILE(SIMPLEFILE) OPNID(DBFILE)
RCVF OPNID(DBFILE)
CHGVAR VAR(&DSPFILE_CHAR) VALUE(&DBFILE_CHAR)
SNDRCVF OPNID(DSPFILE)
ENDPGM
</pre>

Discuss This Question: 2  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
  • Vatchy
    To clarify, either one can be declared but not both at the same time. You can only declare one file in a CL program.
    1,410 pointsBadges:
    report
  • JC400IT
    You can declare up to five files in a CL procedure or original program model (OPM) program. The DCLF command has the following parameters:
    55 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