CLLE File Declaration
5 pts.
0
Q:
CLLE File Declaration
Can display File and PF be declared in a CLLE program
ASKED: Dec 15 2008  2:19 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
4875 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
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:


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
Last Answered: Dec 16 2008  4:19 PM GMT by Bvining   4875 pts.
Latest Contributors: Cwc   3845 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Vatchy   670 pts.  |   Dec 17 2008  12:10AM GMT

To clarify, either one can be declared but not both at the same time. You can only declare one file in a CL program.

 

JC400IT   45 pts.  |   Dec 17 2008  4:26AM GMT

You can declare up to five files in a CL procedure or original program model (OPM) program. The DCLF command has the following parameters:

 
0