Hi,
I have some code in a program , the process of which is as follows:
--- LOOP ------
Add a new member (for instance M1) to a file F1
override the member M1
copy data from a spool file to the member M1
RCVF from member M1 and process records till end
On EOF, go to LOOP again to copy data from another spool file to and read the new member M2 and so on...
When there are no more spools , the process terminates...
The problem I faced in the loop above is that after the override to a new member every time the RCVF is retrieving data from the first member only but not from the latest overridden member. How can this problem be solved?
Thanks
I have some code in a program , the process of which is as follows:
--- LOOP ------
Add a new member (for instance M1) to a file F1
override the member M1
copy data from a spool file to the member M1
RCVF from member M1 and process records till end
On EOF, go to LOOP again to copy data from another spool file to and read the new member M2 and so on...
When there are no more spools , the process terminates...
The problem I faced in the loop above is that after the override to a new member every time the RCVF is retrieving data from the first member only but not from the latest overridden member. How can this problem be solved?
Thanks
Comment