If an environment variable or data-name is specified for the assignment name, the value of the data-name or the environment variable is processed as described below.
Format: environment variable and data-name values >>-+------------------+--system-file-name-----------------------> '-file-system-ID- -' >--+---------------------------------------------------------------+->< | .----------------------------------. | | V | | '-(alt-index-file-name-1---+------------------------------+-+-)-' '-,--+-----------------------+-' '-alt-index-file-name-2-'
The examples in the following table assume that runtime option FILESYS has been set to SdU, and thus the file-system ID defaults to SdU.
| Environment variable value or data-name value | File-system ID | System file-name |
|---|---|---|
| my-fyle | SdU | my-fyle |
| abc/my-fyle | ABC (invalid) | fyle |
| payroll-fyle | PAY (invalid) | fyle |
| rsd-payroll-file | RSD | payroll-file |
| \\Strange (...) name! | SdU | \Strange (...) name! |
| db2-File1 | DB2 | File1 |
| ./db2-File2 | SdU | ./db2-File2 |
| sfs-/.:/cics/sfs/svr/F1 | SFS | F1 (on SFS server svr) |
| STL-/.:/cics/sfs/svr/F1 | STL | (Invalid path) |
| stl-file1:file2 | STL | file1 and file2 (concatenated) |
For more information about identifying files, see Identifying files in the COBOL for AIX Programming Guide.
For more information about file concept and terminology, see File concepts and terminology in the COBOL for AIX Programming Guide.