TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-171
#FILEINFO Built-In Function
#FILEINFO Built-In Function
Use #FILEINFO to obtain detailed, specific information about a file.
option
is an information request. It can be any of these:
AUDITED
returns -1 if the file exists and is audited by the TMF subsystem; otherwise, it
returns 0.
BLOCKLENGTH
returns one of these:
•
For structured files, the physical block length (in bytes)
•
For unstructured files, the length of the system buffer used for the file (in
bytes)
•
For non-existent files, 0
CODE
returns the numeric file code (0, if the file does not exist); see the FUP INFO
command in the File Utility Program (FUP) Reference Manual. This output
includes file type 800, the native object file for TNS/E systems.
CORRUPT
returns -1 if the file exists and has been corrupted; otherwise, it returns 0. (If a
FUP DUP operation is writing to the file, it is considered to be corrupt until the
operation is finished.)
CRASHOPEN
returns -1 if the file is marked crash-open, meaning the file was not closed
normally by the disk process; otherwise, it returns 0.
CREATION_GMT
returns the time and date when the file was created, expressed as a four-word
timestamp (0, if the file does not exist or if it was created prior to the B40 RVU).
DATACOMPRESSION
returns -1 if the file exists, is key-sequenced, and uses data compression;
otherwise, it returns 0.
#FILEINFO / option [ , option ] ... / file-name
[ file-name ... ]