Previous Page | Next Page

Data Set Options under UNIX

FILECLOSE= Data Set Option: UNIX



Specifies how a tape is positioned when a SAS data set is closed.
Default: REREAD
Valid in: DATA step and PROC steps
Category: Miscellaneous
Engines: V9TAPE, V8TAPE, V7TAPE, V6TAPE
UNIX specifics: list of valid values
See: FILECLOSE= Data Set Option in SAS Language Reference: Dictionary

Syntax

Syntax

FILECLOSE= FREE | LEAVE | REREAD | REWIND

FREE

rewinds and dismounts the tape. If the device cannot dismount the tape, then the tape will be rewound only.

LEAVE

positions the tape at the end of the file that was just processed. Use FILECLOSE=LEAVE if you are not repeatedly accessing the same files in a SAS program, but you are accessing one or more subsequent SAS files on the same tape.

REREAD

positions the tape volume at the beginning of the file that was just processed. Use FILECLOSE=REREAD if you are accessing the same SAS data set on tape several times in a SAS program.

REWIND

rewinds the tape volume to the beginning. Use FILECLOSE=REWIND if you are accessing one or more previous SAS files on the same tape, but you are not repeatedly accessing the same files in a SAS program.

Previous Page | Next Page | Top of Page