TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-270
#OPENINFO Built-In Function
#OPENINFO Built-In Function
Use #OPENINFO to obtain information about file openers.
option
is an information request. It can be any of these:
ACCESSID
returns the user number of the opener.
ACCESSMODE
returns the access mode with which the file or device was opened:
BACKUP
returns the CPU,PIN of the backup process, if there is one and that process
has
the file open; otherwise, it returns nothing.
EXCLUSION
returns the exclusion specification under which the file or device was opened:
FILENAME
returns the name of the file opened (can be useful when the argument is a disk
name).
PRIMARY
returns the CPU,PIN of the primary process.
PROCESSID
returns the process name of the opening process, if the process is named;
otherwise, it returns the CPU,PIN of that process.
#OPENINFO / option [ , option ] /
{ file-name | device-name } tag
0 Read/write
1 Read-only
2 Write-only
0 Shared
1 Exclusive
3 Protected