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 do you find out whether a record is present in the physical file without reading the file? for Example Employee No: 100 in an Employee master.How do we find out whther 100 is present in Employee master without reading the file?
11 Answers Bank Of America, CSC, IBM,
how can you display specific subfile page on the screen in unequal subfile?
What is significance of a file designated as a Primary file in Rpg400 program....also what's use of secoundry file
what is plat file?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
i would like to know under what circumstance the object will get locked on AS400.
how to check on which PF , the LF is dependant ?
How can read PF in reverse order (end to start) in CL pgm..
Errors in Sql query will be in which state?
suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis
Anyone help me for the below question:- If problem/error occur in *PSSR subroutine,how should I handel it in RPG program.
RPG/400 faqs?