How I can reread the physical file in CL program once the
end of file reached in same CL program.
Answer Posted / sekhar
In V5R4M0 , we can declare 5 files in CL-ILE pgm
DCLF (FILE1) OPENID(OP1_)
DCLF (FILE2) OPENID(OP2_)
DCLF (FILE3) OPENID(OP3_)
DCLF (FILE4) OPENID(OP4_)
DCLF (FILE5) OPENID(OP5_)
DCL &LGL *LGL VALUE('1')
DOWHILE (&LGL = '1')
RCVF (RCDFMT_FILE1)
MONMSG MSGID(CPF0864) EXEC(LEAVE)
OPERATIONS
ENDDO
SIMILAR TO ALL 4 FILES....
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
what is the difference between do while and do until?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
how does the rpg element work?
how do I declare a table or array in rpg iv?
What is the difference between copybooks and subprocedures in as400?
what is a rpg?
What is difference between bind by copy and bind by reference?
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.
explain sflclr, sflend, sfldlt, and sflcsrrrn?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
is this a rpg channel?
what is the use of sflnxtchg?
When it is desirable to describe files Internally?
how can I tell when to replace the array?