Precedence of file-system determination
The file system applicable to a given SEQUENTIAL
, INDEXED
,
or RELATIVE
file is determined according to the following
precedence, from highest to lowest.
- The file system specified by the assignment-name runtime
environment variable or the value of the
USING
data item that is coded in theASSIGN
clause - The file system specified by the next-to-rightmost component of
the literal or user-defined word that is coded in the
ASSIGN
clause if that component is at least three characters long (and meets the other criteria described in the documentation of theASSIGN
clause) - The default file system designated by the
FILESYS
runtime option (as specified in the COBRTOPT runtime environment variable)
If no file system is determined by the preceding means, the file system defaults to SFS if the leftmost part of the system file-name begins with /.:/cics/sfs, otherwise to STL.
Related references
Runtime environment variables
FILESYS
ASSIGN clause (COBOL for Linux® on x86 Language Reference)
Runtime environment variables
FILESYS
ASSIGN clause (COBOL for Linux® on x86 Language Reference)