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?
Answer Posted / 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 View All Answers
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
what is the use of sflnxtchg?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
what is *place and *auto keyword in prtf ?plz explain
How Chain operation copies the record's data to the input buffer for the program?
is this a rpg channel?
What is file identifier where we can use?
what is kids-rpg?
how do I declare a table or array in rpg iv?
How to handle duplicate error handling in RPG?
what was the robotech rpg?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
What is the difference between copybooks and subprocedures in as400?
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?