STATUS

Top  Previous  Next

 

The STATUS statement returns a dynamic array containing a variety of information about an open file. Not all fields are returned on the PDA version of QM.

 

 

Format

 

STATUS var FROM file.var THEN statement(s) ELSE statement(s)

 

where

 

varis the variable to receive the dynamic array.

 

file.varis the file variable associated with an open file.

 

At least one of the THEN and ELSE clauses must be present for compatibility with other multivalue products. The implementation of STATUS in QM never executes the ELSE clause.

 

 

The STATUS statement returns a dynamic array where the fields contain the following information:

 

1File position for a sequential file.
21 if at end of file, else 0 (sequential files)
3Unused on QM
4Bytes available to read (sequential files)
5File permission flags in the form used by Linux, etc to define access rights
6File size
7Number of hard links (not Windows)
8User id of owner (not Windows)
9Group id of owner (not Windows)
10Inode number (not Windows)
11Device number
12Unused on QM
13Time of last access
14Date of last access
15Time of last modification
16Date of last modification
17-19Unused on QM
20Operating system file pathname
21File type (see FILEINFO() for a list of values)

 

 

See also:

FILEINFO()