wirte a simple program for read file in cl

Answers were Sorted based on User's Feedback



wirte a simple program for read file in cl..

Answer / 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

wirte a simple program for read file in cl..

Answer / uday bagdi

PGM
DCLF FILE(PGMUDAY/PF1)
Read: RCVF RCDFMT(R1)
MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(end))
SNDPGMMSG MSG(

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB400 Interview Questions

what is exception and how many types of exception

1 Answers   Active Brains,


Q.1 how to implement the commitment control. 2.how to control commitment control from external program.

7 Answers   IBM,


how can we write LF using flatfile.

9 Answers  


A pf containing 100 records... my query is how to display from 11th record in the pf?

3 Answers  


Why journalling is compulsory before commitment control?

1 Answers  


Why we create the Physical File Member?

5 Answers  


How to insert more than one record to a pf at a time?(Bulk insert to a pf)

9 Answers  


When u create a PF and did not fill up Maint parameter, then by default which access path will the system take & why

2 Answers   HCL,


How to read a PF in reverse(from last rec to first) using CL?

3 Answers   HCL,


Last statement of any rpg program is lr?

1 Answers  


Which keyword is used both in subfile and subfile control record format of a DSPF?

8 Answers  


what is dynslt and why we use that command when do we use command

2 Answers   Active Brains, UHG,


Categories