HP 3000 Manuals

Determining File Types [ New Features of MPE/iX: Using the Hierarchical File System ] MPE/iX 5.0 Documentation


New Features of MPE/iX: Using the Hierarchical File System

Determining File Types 

Before you try to work with a file created using HFS syntax, you may need
to determine what type of file it is.  Use the LISTFILE command with the
,2 option to list compete information about a file.  The TYP field
indicates the type of file it is and whether it is a directory.

Using LISTFILE, 2 produces output such as the following:
__________________________________________________________________________
|                                                                        |
|                                                                        |
|      <user |listfile /OFFICIAL/GP1,2|                                  |
|        PATH= /OFFICIAL/                                                |
|                                                                        |
|       CODE  ------------LOGICAL RECORD-----------  ----SPACE----       |
|      FILENAME                                                          |
|               SIZE  TYP        EOF      LIMIT R/B  SECTORS #X MX       |
|                                                                        |
|                 0   GBD          0          0   0       64  2  *  GP1/ |
|                                                                        |
__________________________________________________________________________

            

The TYP field uses letters to represent types of files.  In the example
shown here, the TYP field contains GBD indicating that it is a group
directory.

Table 7-2 defines letter codes that can appear in the TYP field.

          Table 7-3.  File and Directory Types 

-------------------------------------------
|              |                          |
|   TYP Code   |       Description        |
|              |                          |
-------------------------------------------
|              |                          |
| First Column | Record Type              |
|              |                          |
-------------------------------------------
|              |                          |
| A            | Account directory        |
|              |                          |
-------------------------------------------
|              |                          |
| B            | Byte-stream "records"    |
|              |                          |
-------------------------------------------
|              |                          |
| F            | Fixed-length records     |
|              |                          |
-------------------------------------------
|              |                          |
| G            | Group                    |
|              |                          |
-------------------------------------------
|              |                          |
| H            | Hierarchical directory   |
|              |                          |
-------------------------------------------
|              |                          |
| R            | Root directory           |
|              |                          |
-------------------------------------------
|              |                          |
| U            | Undefined-length records |
|              |                          |
-------------------------------------------
|              |                          |
| V            | Variable-length records  |
|              |                          |
-------------------------------------------
|              |                          |
| Second       | ASCII or Binary Format   |
| Column       |                          |
|              |                          |
-------------------------------------------
|              |                          |
| A            | ASCII                    |
|              |                          |
-------------------------------------------
|              |                          |
| B            | Binary                   |
|              |                          |
-------------------------------------------
|              |                          |
| Third Column | CCTL Indicator           |
|              |                          |
-------------------------------------------
|              |                          |
| C            | CCTL (carriage control)  |
|              |                          |
-------------------------------------------

          Table 7-3.  File and Directory Types (cont.) 

-------------------------------------------
|              |                          |
|   TYP Code   |       Description        |
|              |                          |
-------------------------------------------
|              |                          |
| Fourth       | File Type                |
| Column       |                          |
|              |                          |
-------------------------------------------
|              |                          |
| D            | Directory (root,         |
|              | account, group, or       |
|              | hierarchical)            |
|              |                          |
-------------------------------------------
|              |                          |
| K            | KSAM XL files            |
|              |                          |
-------------------------------------------
|              |                          |
| L            | Symbolic link file       |
|              |                          |
-------------------------------------------
|              |                          |
| M            | Message files            |
|              |                          |
-------------------------------------------
|              |                          |
| O            | Circular files           |
|              |                          |
-------------------------------------------
|              |                          |
| R            | RIO files                |
|              |                          |
-------------------------------------------
|              |                          |
| S            | Spool file               |
|              |                          |
-------------------------------------------
|              |                          |
| d            | Device link file         |
|              |                          |
-------------------------------------------
|              |                          |
| f            | FIFO file                |
|              |                          |
-------------------------------------------
|              |                          |
| s            | Streams                  |
|              |                          |
-------------------------------------------


NOTE If the file was not created with the CCTL option, the File Type indicators will be displayed in the third column instead of the fourth.


MPE/iX 5.0 Documentation