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

How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

0 Answers  


how do I preserve and clean the array?

0 Answers   IBM,


what is the difference between do while and do until?

0 Answers   IBM,


In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding

4 Answers   Infinite Computer Solutions,


Explain mdt?

0 Answers  






What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?

2 Answers  


What is the purpose of Panel Groups?

4 Answers  


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


Hi,This is raju.Can any body give me the real experience answer for this question? 1.What is the significance of *MAP and *DROP in the CPY command?

3 Answers  


Anybody can explain the difference between SFLCLR & SFLINZ?

7 Answers  


Can AnyOne tell me how to read join logical file in rpg from starting to end?

2 Answers  


what r drawbacks of OPM? Why do we go for ILE RPG?

1 Answers  


Categories