COBOL Manual for TNS and TNS/R Programs

Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs522555-006
13-90
COBOL_ASSIGN_
system-file-name
is an alphanumeric data item holding the file-system file name of the file to be
assigned. system-file-name is in external form. It must be left-justified in the
data item and any unused portion of the name must contain spaces.
If the program identifies system-file-name as an OSS file system name, then
the program assumes that fd-name is an OSS file; otherwise, the program
assumes that fd-name is a Guardian file.
If system, volume, or subvolume of a Guardian file is not specified, the respective
default value is used ($volume.file is no longer allowed.)
If system-file-name is omitted, COBOL_ASSIGN_ does not change the
original file-system file name.
For more information on OSS file system names, see Files in the OSS
Environment.
file-code
can be specified in the Guardian environment only. It is a numeric data item or a
numeric literal whose value is a file code acceptable to the file system. For
example, file code 101 indicates that the file is an EDIT file and file code 180
indicates that the file is an OSS ASCII text file.
If file-code is omitted, COBOL_ASSIGN_ does not change the original file
code.
file-type
can be specified in the Guardian environment only. It is a numeric data item whose
content, or a numeric literal whose value, is either 0 (for an unstructured file) or 2
(for an entry-sequenced file). You can specify file-type only for a file whose
organization is sequential. For other file organizations, the organization determines
the file type (relative for ORGANIZATION RELATIVE and key sequenced for
ORGANIZATION INDEXED).
If file-type is omitted, COBOL_ASSIGN_ and does not change the original file
type.