Accessing Files Programmer's Guide (32650-90885)

187
14 Getting File Information
MPE/iX provides a number of commands and intrinsics that enable you to obtain
information about your files. You can use the commands and intrinsics described in this
chapter to obtain file information for a variety of purposes.
This chapter is divided into two main sections:
General File Information covers the commands and intrinsics that you use to obtain
information concerning the physical and operational characteristics of your file (defined
by device dependencies, a disk file's label, FILE commands, HPFOPEN/FOPEN intrinsic
parameters, and file system defaults), as well as access-dependent details about a
currently opened file (including EOF and logical record marker locations). Commands
and intrinsics described in this section are:
LISTFILE command
LISTEQ command
[CMD] INFO command
FFILEINFO intrinsic
FGETINFO intrinsic
FLABELINFO intrinsic
FRELATE intrinsic
Error information covers the intrinsics that you use specifically to handle file system
errors–to identify an error and to display error information at the terminal. This can
include a description of the error condition returned by the last file access intrinsic call.
Intrinsics described in this section are:
FCHECK intrinsic
FERRMSG intrinsic
PRINTFILEINFO intrinsic
A number of commands and intrinsics return the same information. Which one you use in
a certain situation is by the context and by the purpose for which you wish to use the
information.