How I can reread the physical file in CL program once the
end of file reached in same CL program.
Answer Posted / ravikumar
Hi,
we can read this file from end of file now.
but once the cursor reached at the end of file then we can not read it again.
DCLF FILE(FILE NAME) OPNID(E)
POSDBF OPNID(File Name) POSITION(*END)
READ: RCVF OPNID(E)
MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(END))
OPERATIONS
GOTO CMDLBL(READ)
END: ENDPGM
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is ment by record level identifier?
what was the robotech rpg?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
What is the difference between copybooks and subprocedures in as400?
How Chain operation copies the record's data to the input buffer for the program?
how do I preserve and clean the array?
what are the key words you must use when using a subfile?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
what is an online rpg?
what is *place and *auto keyword in prtf ?plz explain
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
how do I play {insert rpg system here}?
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
How to call one program from another program in RPG? please help me with the code