COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

To display a file’s current security attributes, use the FUP INFO command.
To alter a file’s security from an HP COBOL program, call the routine COBOL_SETMODE_
(page 634).
Suppose that your HP system is part of an Expand network and you own the disk file FILE3. The
command in Table 120 prevents everyone but you from reading, writing, executing, or purging
FILE3, but you can only read, write, execute, or purge the file on your local system.
Example 276 File Accessible Only to Owner and Only Locally
FUP SECURE FILE3,"OOOO"
The command in Table 121 is the same as the command in Table 120, except that you can read,
write, execute, or purge FILE3 from anywhere on the Expand network.
Example 277 File Accessible Only to Owner
FUP SECURE FILE3,"UUUU"
The command in Table 122 allows any member of your user group to read or execute FILE3 from
anywhere on the Expand network, but allows only you to write or purge it, and only from your
local system.
Example 278 File Readable and Executable to Owner’s User Group
FUP SECURE FILE3,"COCO"
The command in Table 123 allows any user to read FILE3, only you to write or purge it, and only
a local super ID user to execute it—and these rules apply from anywhere on the Expand network.
Example 279 File Readable to Any User
FUP SECURE FILE3,"NU-U"
Default File Security
A newly created file has the default file security. You can set the default file security for the duration
of your TACL session with the TACL command VOLUME; you can set it until further notice with the
TACL command DEFAULT (further notice being another DEFAULT command).
The command in Example 280 sets the default file security to “UUUU” until you override it with a
VOLUME command or another DEFAULT command.
Example 280 Setting Default File Security to “UUUU”
DEFAULT, "UUUU"
The command in Example 281 sets the default file security to “CUCU” for the duration of your
TACL session. If you log off and log back on, the default file security reverts to “UUUU.
Example 281 Setting Default File Security to “CUCU”
VOLUME, "CUCU"
If a Pathway server written in HP COBOL creates a file, the security of the file is that of the DEFAULT
command active when the monitor process (PATHMON process) governing the server class starts
to execute.
858 Disk Input and Output