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 find the list of source physical files in a library?? Is there any way to get a list??

5 Answers   Infosys,


How to read a pf in reverse(from last record to first) using cl?

0 Answers  


how to know total no of records in pf with out using sql??????

3 Answers  


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

2 Answers   Cap Gemini,


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,






What is FORMAT keyword and its use?

0 Answers  


What is the interactive job?

0 Answers  


can we concate fileds in physical file? If yes how can we do?

5 Answers   Patni,


In a CL Program after executing a SQL SP how to receive a Output value from the SP. Just to make it clear I am sending 2 input and 1 output parameter to the SQL Stored Procedure. Now while receiving it output parm it is failing.

0 Answers   Nous,


How to retrieve a physical file after deleting that ? what is keyword used for that....??

6 Answers  


I have a PF with out any data but the dependent LF is having data?

1 Answers   HCL,


how to see number of logical files depending on a pf?...can we declare more than 20 logical files from a single pf? is it possible

4 Answers   ocbc,


Categories