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 to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
How can we make use of SETLL operation in CL?
difference between 1:%found and %equal built function in detail with example .
How to add 2 new fields in a file? How many ways are there in as400?
What would be the effect on the field where reverse image, underline and high intensity?
I have 1000 records in a file. I would like to generate 10 identical reports from this record with same format (structure of records) how do I do this?
What is the difference between inner join @ outer join
How to update physical file in rpgle without using display file?
how we retrieve records without using key field (ex:name) from Physical File through RPG in as/400?
is this a rpg channel?
1.The questions have given an array declaration and move operation then this statement is correct or not?
Q1.How we can copy the data of file one session to another session? Q2.how we can execute a loop infinitely in AS/400 coding? Q3.In ALDON tool,multitask is posible on a perticular object by the user?