1) Can we declare a Display file in CL?

2) How many no. of files can be declared in a CL?

3) What is Non-Join Logical file and its importance?

Answer Posted / jay choudhari

* To declare frist physical file.

CL CODE:

DCLF FILE(PHYSICAL FILE NAME)
READ: RCVF RCDFMT(PF RECORD FMT NAME)
MONSMS MSGID(CPF0864) EXEC(GOTO CMDLBL(END))
OPERATIONS
GOTO CMDLBL(READ)

END: ENDPGM

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we read file using curser? how to define a curser?

831


what does check opcode do ?

1069


define the purpose of the iter operation?

1039


what is the difference between seton lr and retrn?

1292


Difference Between Ca & Cf?

704






define the purpose/use for sflrna?

1010


why is the declare cursor statement is used for?

632


what is the function of cpyf command?

1010


name few ibm supplied libraries?

1226


how do you read changed records backward in subfile?

617


how to define global parameter in ile ?

633


which cl command is used to trap error messages during program execution?

868


how to toggle between single line and multi - line display of a particular record in a subfile?

1088


define the purpose of the *cat function?

986


In Which Specs Arrays, Tables & Constants Are Defined?

704