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

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  


How many libraries can be there in a library list?

2 Answers  


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

2 Answers   Active Brains, UHG,


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,


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

1 Answers  






1. How can I create a LF using crtlf command based on a particular member in a multimember PF? Where I have to specify the member name? 2. How to differentiate between the types of join from a Join logical file DDS. Is it possible to have different types of Join Logical files? 3.Any performance difference between Opnqrf and Embedded SQL? When I should prefer Opnqryf and when SQL? 4. I know access path is the path chosen by the program to retrieve data. It can be of keyed access path or arrival sequence. *IMMED- *IMMED description says access path is updated each time record is added or deleted from a member. - What is updating here? *REBLD - The access path is completely rebuilt each time a file member is opened. The access path is maintained until the member is closed, then the access path is deleted. - I am not able to understand this completely. Could anyone explain these more clearly? 5.What is the purpose of using activation group. I know it is a resource allocator, but other than this any other benefits of using an activation group?

2 Answers   IBM,


How many maximum record format a logical file have?

0 Answers  


What is open data path? And what is the difference between access path and open data path?

1 Answers  


what is open data base command

1 Answers   Active Brains, Cognizant, CSC, CTS,


What is the batch job?

0 Answers  


How to index LF by relative record no (RRN)

0 Answers  


Is Constent can be define as a key field?

3 Answers  


Categories