I would like to be able to use the ENDFILE command
to denote the end of a file. The problem is, the file
has been previously rewound, so ENDFILE puts the end of file after the
record that was being currently read when the job
was 'aborted' (ie an error is found so you exit from the subroutine without finishing the reading of the file)
How can I create add the ENDFILE marker at the true end of the file. I know this must be trivial so I must be missing something really obvious here...
Any help?
thanks
diane
to denote the end of a file. The problem is, the file
has been previously rewound, so ENDFILE puts the end of file after the
record that was being currently read when the job
was 'aborted' (ie an error is found so you exit from the subroutine without finishing the reading of the file)
How can I create add the ENDFILE marker at the true end of the file. I know this must be trivial so I must be missing something really obvious here...
Any help?
thanks
diane