Chapter Contents |
Previous |
Next |
FOPEN |
OS/390 specifics: | files opened with FOPEN must be explicitly closed with FCLOSE |
Syntax | |
Details | |
See Also |
Syntax |
FOPEN (fileref <,open-mode <,record-length <,record-format>>>) |
A | APPEND mode allows writing new records after the current end of the file. |
I | INPUT mode allows reading only (default). |
O | OUTPUT mode defaults to the OPEN mode specified in the host option in the FILENAME statement or function. If no host option is specified, it allows writing new records at the beginning of the file. |
S | Sequential input mode is used for pipes and other sequential devices such as hardware ports. |
U | UPDATE mode allows both reading and writing. |
B | data are to be interpreted as binary data. |
D | use default record format. |
E | use editable record format. |
F | file contains fixed length records. |
P | file contains printer carriage control in host-dependent record format. For data sets with FBA or VBA record format, specify `P' for the record-format argument. |
V | file contains variable length records. |
Details |
Under OS/390, files that have been opened with FOPEN must be closed with FCLOSE at the end of a DATA step; files are not closed automatically after processing.
See FINFO for code examples.
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.