I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?

Answers were Sorted based on User's Feedback



I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want ..

Answer / alok.yee001

by using POSDBF command

Is This Answer Correct ?    4 Yes 2 No

I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want ..

Answer / alok.yee001

Yes sarath you are right, but in that case we need two commands ovrdbf and dltovr, and if we are repeating this scenerio two or three time thenut will be complex to handle.

Youranswer is right too.

Is This Answer Correct ?    1 Yes 0 No

I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want ..

Answer / sarath_kollam

You can also use OVRDBF with POSITON to *START . But you can only use this once inside , other wise ENDOVR and Override again.

Is This Answer Correct ?    1 Yes 1 No

I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want ..

Answer / brian

Brian J

Is This Answer Correct ?    0 Yes 0 No

I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want ..

Answer / shubhendu

We can define same file 2 times with different open id and then we will do RCVF with their open id and then we will read again same file after reading the 1st time with their open id

Ex. DCLF File(abc) OpnId(1)
DCLF File(abc) OpnId(2)
RCVF OpnId(1)
MonMsg msgid(cpf0864)

RCVF opnId(2)
MonMsg msgid(cpf0864)


Like this I think we can do

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Duplicate data error. What action would you take ( C D I R )...?

4 Answers  


I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.

1 Answers  


What is the difference between ITER and DO ? I know both are used to execute set of statements repeatedly, but what is the main difference?

2 Answers   CGI, Wipro,


I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.

2 Answers  


what will happen two jobs have same name are submitted

5 Answers   CTS,






Hi, Can anybody give me real sinario for SFLRCDNBR?with example?

2 Answers  


what are the types of identifers

2 Answers   IBM,


How can we override a file during runtime in rpg?

0 Answers  


Explain mdt?

0 Answers  


what is file information data structure?

1 Answers   IBM,


1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?

12 Answers   IBM, Opus,


how to retrieve RRN value in RPGLE program

3 Answers  


Categories