HPlogo Accessing Files Programmer's Guide > Chapter 14 Getting File Information

Chapter 14 Getting File Information

MPE documents

Complete PDF
Table of Contents
Index

E0300 Edition 6 ♥
E0692 Edition 5

Table of Contents
Displaying General File Information
Displaying permanent file information with LISTFILE
Displaying temporary file information with LISTFILE...(;TEMP)
Displaying file equations with LISTEQ
Retrieving Specific File Information
[:CMD] FINFO
FFILEINFO
FGETINFO
FLABELINFO
Determining Interactive/Duplicative Files with FRELATE
Displaying File Error Information
FCHECK
FERRMSG
PRINTFILEINFO
Writing a file system error-check procedure
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.




Traditional Mechanism for File Security


Displaying General File Information