Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Going to end of file

Status
Not open for further replies.

sagn

Programmer
Jun 7, 2001
166
0
0
US
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
 
The ENDFILE command is used to mark the current position as end of file.

Endfile(unit=number, err=errorlabel, iostat=iostat)

Simon Yu
CCNP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top