Hi Folks,
I have a file and 2 pgms.
In PGM 1, Im reading the file and loading a subfile
In PGM 2, Im reading the same file and have to load the subfile
In both the PGMs the file is read with a Key Field with different values in both the PGMs
What is happening is that, in PGM 1 subfile loads fine, but in PGM 2 when I read the same
file with a different Key Value the EOF condition is met and the subfile in PGM 2 does not.
I have used USROPN in both the PGMs and Im opening the file just before the read and closing
the file after the loading to the subfile but even then the EOF condition is being met in PGM 2 so that the subfile is not getting loaded in PGM 2.
Any ideas as to what needs to be done...
Thanks...G
I have a file and 2 pgms.
In PGM 1, Im reading the file and loading a subfile
In PGM 2, Im reading the same file and have to load the subfile
In both the PGMs the file is read with a Key Field with different values in both the PGMs
What is happening is that, in PGM 1 subfile loads fine, but in PGM 2 when I read the same
file with a different Key Value the EOF condition is met and the subfile in PGM 2 does not.
I have used USROPN in both the PGMs and Im opening the file just before the read and closing
the file after the loading to the subfile but even then the EOF condition is being met in PGM 2 so that the subfile is not getting loaded in PGM 2.
Any ideas as to what needs to be done...
Thanks...G
Comment