wirte a simple program for read file in cl
Answer Posted / uday bagdi
PGM
DCLF FILE(PGMUDAY/PF1)
Read: RCVF RCDFMT(R1)
MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(end))
SNDPGMMSG MSG(&Name) TOPGMQ(*EXT)
GOTO CMDLBL(Read)
END: ENDPGM
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Suppose I have a pf, it contains 5 members, how to access particular member data from logical file? What is the use of member in pf?
What is FORMAT keyword and its use?
How to find the list of source physical files in a library?
What is the difference between access path and open data path?
What is the purpose of the chain and setll and setgt?
How to retrieve a physical file after deleting that?
Last statement of any rpg program is lr?
How to know the particular record in pf with out reading?
What is open data path?
I have a pf, it contains 5 members, how to access particular member data from logical file?
How to index LF by relative record no (RRN)
How to read a pf in reverse(from last record to first) using cl?
How to update physical file using logical file with example?
What is the interactive job?
What is the batch job?