Table 2: FOPTIONS

Bits

Value

Meaning

Comment

2:3 000 Standard file Used to specify that the file to be opened is an ordinary (standard) file, suitable for access sequentially or directly.
2:3 001 CM KSAM file Used to specify that the file to be opened is a CM KSAM file. Note that NM KSAM files cannot be opened with FOPEN. HPFOPEN must be used.
5:1 0 Allow file equations File equations can be used to redirect file input or output.
5:1 1 Disallow file equations File equations cannot be used to redirect file.
8:2 00 Fixed length records File will have fixed length records.
8:2 01 Variable length records File will have variable length records.
10:3 000 Filename This file will use the file name specified in the formal file designator.
10:3 001 $STDLIST This file will use the system file = $STDLIST.
10:3 100 $STDIN This file will use the system file = $STDIN.
13:1 0 Binary This is a binary file.
13:1 1 ASCII This is an ASCII file.
14:2 00 New file This is a new file. When FOPEN executes, it will create the file using the specifications passed to FOPEN.
14:2 01 Old permanent file This is an old permanent file. When FOPEN executes, it will look for an existing permanent file. File specifications such as the record size, which are passed to FOPEN, will be ignored. The record size of the existing permanent file will be used instead.
14:2 10 Old temp file This is an old temporary file. When FOPEN executes, it will look foran existing temp file. File specifications such as the record size, which are passed to FOPEN, will be ignored. The record size of the existing temp file will be used instead.
14:2 11 Old permanent or temporary file This is an existing file. Both temporary and permanent or temporary file domains will be searched when the FOPEN intrinsic executes.