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 do u track msg in cl pgm???
1.I have a Batch job, Running for 4 hours, i want to reduce the executing time to 2 hours what should you do?
Errors in Sql query will be in which state?
How to write record if no field or the field are different in physical file in rpgle ?
how we create binder member for updating service program and where we type this code on command line or in program ? strpgmexp pgmlvl(*current) export symbol (xyz0 endpgmexp. plz explain me this step by step .
Can we possible to key with the date field?
how can we know running job is batch or intractive ? i need all the possibilites.........plz help me
can I touch the array during treatments?
i have 1000 records in pf.what are all the ways to read a particular name records in rpg?? ie.. in pf i have a name called demo appeared around 52 times hw will we read this particular records in rpg/400?.
suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .
what will happen two jobs have same name are submitted
how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.