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
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 |
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 |
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 |
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...
how do I preserve and clean the array?
what is the difference between do while and do until?
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?
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
What is the purpose of Panel Groups?
i want to retrieve record b/w 2 dates in as400
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?
Anybody can explain the difference between SFLCLR & SFLINZ?
Can AnyOne tell me how to read join logical file in rpg from starting to end?
what r drawbacks of OPM? Why do we go for ILE RPG?