HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
BACKSPACE
Chapter 10 283
Examples
The following statement causes the file connected to unit 10 to be positioned just before the
preceding record:
BACKSPACE 10
The following statement causes the file connected to unit 17 to be positioned just before the
preceding record. If an error occurs during the execution of the statement, control passes to
the statement at label 99, and the error code is returned in ios:
BACKSPACE (17, ERR=99, IOSTAT=ios)
Related statements
ENDFILE, OPEN, and REWIND
Related concepts
For information about I/O concepts, see Chapter 8, “I/O and file handling,” on page 201, which
lists example programs that use I/O. For information about I/O formatting, see Chapter 11,
“Intrinsic procedures,” on page 501.