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

Software/Hardware used:
ASKED: December 15, 2008  2:19 PM
UPDATED: December 17, 2008  4:26 AM

Answer Wiki:
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>
Last Wiki Answer Submitted:  December 16, 2008  4:19 pm  by  Cwc   4,275 pts.
All Answer Wiki Contributors:  Cwc   4,275 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.

 

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 pts.