Statements for Input and Output

The following table lists statements used for input and output.

Name Description
ACCEPT Similar to a formatted, sequential READ statement.
BACKSPACE Positions a file to the beginning of the previous record.
CLOSE Disconnects the specified unit.
DELETE Deletes a record from a relative file.
ENDFILE Writes an end-of-file record or truncates a file.
INQUIRE Returns the properties of a file or unit.
OPEN Associates a unit number with an external device or file.
PRINT (or TYPE) Displays data on the screen.
READ Transfers data from a file to the items in an I/O list.
REWIND Repositions a file to its first record.
REWRITE Rewrites the current record.
WRITE Transfers data from the items in an I/O list to a file