COBOL Manual for TNS and TNS/R Programs

Using HP COBOL in the OSS Environment
HP COBOL Manual for TNS and TNS/R Programs522555-006
19-10
OSS Pathnames in HP COBOL Source Programs
device
specifies a Guardian device or either of the special names #DYNAMIC or #TERM.
file-id-1
node.volume.subvolume.file_id
node
specifies the name of a remote node. The operating system on the node must be
version D40.00 or later, and the node must have a compatible OSS name server.
file-id-2
/G/volume/subvolume/file_id
OSS Pathnames in HP COBOL Source Programs
Within an HP COBOL source program, OSS pathnames are allowed as system-
file-name parameters in these contexts:
In the File-Mnemonic clause of the SPECIAL-NAMES paragraph, for example:
SPECIAL-NAMES.
FILE "OSS /usr/test/fileID" IS A-FILE.
FILE "GUARDIAN $MYVOL.SUBVOL.FILEID" IS B-FILE.
FILE "OSS /G/MYVOL/SUBVOL/FILEID" IS C-FILE.
In the ASSIGN clause of a file-control entry, for example:
FILE-CONTROL.
SELECT A-FILE ASSIGN TO "OSS /usr/test/fileID".
SELECT B-FILE ASSIGN TO "GUARDIAN $MYVOL.SUBVOL.FILEID".
SELECT C-FILE ASSIGN TO "OSS /G/MYVOL/SUBVOL/FILEID".
Within an HP COBOL program, the maximum length of an OSS pathname is the
maximum length of a literal (160 characters).
Example 19-2. OSS Pathnames for Guardian Files
"GUARDIAN \qa.tests.cobol85.release4"
"GUARDIAN S.#PRNT2"
"OSS /G/tests.cobol85.release4"
"OSS /E/qa/G/$tests.cobol85.release4"
Note. If system-file-name is an OSS file, it cannot be a DEFINE name. If system-
file-name is a Guardian file, it can be DEFINE name.