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

How to know the perticular record in pf with out reading?

2 Answers   Cap Gemini,


Why we create the Physical File Member?

5 Answers  


There are six records in a file and we are going to update that records and used commit operation when it complete the update but suppose when it updating the third record,a error occured and operation failed.Is previously two records will be update or whole operation will be rollback? Please confirm it.

2 Answers  


Can we concatenate fields in physical file? If yes how can we do?

0 Answers  


Suppose if a physical file is having 1000 records, but i deleted 500 records from it. Here the concern is can the size of the file changes or it remains the same... kindly help me out with thorough xplanation.... Thanks in-advance...

6 Answers   ABC, TCS,






how to eliminate the level check error

2 Answers   TCS,


how can we write LF using flatfile.

9 Answers  


can any one tell me what is meant by PSSR? Kindly elaborate it...

1 Answers  


i have a PF,it contains 5 members,how to access particular member data from logical file ?and what is the use of member in PF

3 Answers  


How can i retrieve city while my i have one field address length 60 but i don't know what where is city in this field ?

4 Answers  


how can i know logical file belongs to which physical file without source?

3 Answers   Cap Gemini,


How to find the list of source physical files in a library?

0 Answers  


Categories