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 |
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 )...?
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.
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?
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.
what will happen two jobs have same name are submitted
Hi, Can anybody give me real sinario for SFLRCDNBR?with example?
what are the types of identifers
How can we override a file during runtime in rpg?
Explain mdt?
what is file information data structure?
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
how to retrieve RRN value in RPGLE program