TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-172
#FILEINFO Built-In Function
DEVICETYPE
returns the numeric device type word (0, if the file does not exist); see the
Guardian Procedure Calls Reference Manual.
EOF
returns the numeric value of the end-of-file pointer, which represents the size
of the file in bytes (0, if the file does not exist).
EXISTENCE
returns -1 if the file exists; if not, it returns 0.
EXTENTSALLOCATED
returns the number of file extents currently allocated (0, if the file does not
exist).
FILE
returns the file-name portion of the fully expanded file name (missing fields in
file-name are supplied by the current defaults); the file need not exist. If the file
is a temporary file, FILE returns nothing.
FILEFORMAT
returns one of these:
FILESTRUCTURE
returns a numeric value that indicates the structure of the file:
FULLNAME
returns the fully expanded file name (missing fields in file-name are supplied by
the current defaults). The define name is returned if a define name is specified.
The file need not exist.
1 if the file is a format 1 file
2 if the file is a format 2 file
0 if the file does not exist
0 Unstructured (or nonexistent)
1 Relative
2 Entry-sequenced
3 Key-sequenced