![]() |
![]() |
Task Reference: HP 3000 Series 9X8LX Computer Systems > Chapter 2 Performing Tasks Using MPE/iX Commands![]() Viewing File Information |
|
Files store the information with which you work. Reports, financial data, program listings, letters, management tools, and more exist within the system in the form of files. Files in the PUB group of an account are usually the files that users of the account share. Files in other groups in the account are often the private files of that group's users. Files must have unique names within the group, but two files in different groups might have the same name. You can display a list of files in your group and account. There are many ways to display a list of files. The following sections offer ways of displaying sets of files with a single command, LISTFILE. To list the names of all files in your current group and account, use the LISTFILE command.
Your screen displays whatever file names you have in your logon group. Here is a sample display:
To list the names of all files in your group and account that begin with the same letter or letters, use the wildcard character (@) after the common portion of the file name.
The following example displays all files in your current group and account that begin with the letters "ABC":
To display the names of all files in your group and account that end with the same letter or series of letters, use the wildcard character @ immediately preceding the common part of the file name and for the group:
The following example lists files in your current group and account that end in the letters "TXT".
To list the names of all files in a specific group of an account, use the LISTFILE command and provide a group name and an account name. Use the wildcard character (@) for the file name.
The following example lists all files (indicated by the @) in the QTR1 group of the PAYROLL account:
To list the names of all files in all groups of an account, use the LISTFILE command. Use the wildcard character (@) for the file name and group name, and provide an account name.
The following example lists all files in all groups of the PAYABLE account.
To list the names of all files in all groups in all accounts, use the LISTFILE command with wildcard characters for the file name, the group, and the account.
For a system with several users, this command may generate a large display. The system scrolls lines of text until it reaches the end of the data. Enter CTRL S to stop the scrolling. Enter CTRL Q to continue the scrolling.
To get specific information about a file, use one of the options of the LISTFILE command. The options can be entered as keywords or option numbers. To find the maximum number of records in a file, use the SUMMARY or 1 option of the LISTFILE command.
The following example provides a summary screen for the file TEMPREC:
or
This option displays a screen similar to the following:
This screen displays the following information:
To display the file specifications and security levels of a file, use the DETAIL or 3 option of the LISTFILE command.
The following example displays file specifications and security levels of the TEMPREC file:
or
This option displays the following information:
This screen displays the following information:
To display the security levels of a file, its group, and its account, use the SECURITY or 4 option of the LISTFILE command.
The following example displays the security level for the TEMPREC file:
or
This option displays a screen similar to the following:
This screen displays the following information:
To display the fully qualified file name of a file, use the QUALIFY or 6 option of the LISTFILE command. The fully qualified file name is composed of the file name, its group name, and its account name.
The following example displays the fully qualified name of the TEMPREC file:
or
This option displays the following information:
The wildcard character @ may be used in place of file, group, and account names. For example:
To display the lockword and creator of a file, use option -3 of the LISTFILE command. This option is available to only the system manager (SM capability), or the account manager (AM capability) of the account that the file is in.
The following example displays the creator of the TEMPREC file and any lockword assignments:
This option displays the following information:
Along with file specification information, this screen displays the following:
You can view the contents of a file using the PRINT command at the system prompt. To view the contents of a file, use the PRINT command followed by a file name.
You can print certain portions of a file to the screen by specifying START= or END= line numbers. For example:
You use the LISTFILE command to list directories as well as files. Directories are special types of files.
You can tell that it's a directory (rather than a file) in the command output because its name is followed by a slash. To list all files and directories in your current working directory:
All files (including directories) in your current working directory are listed. If you omit the ./ from the command, the LISTFILE command assumes that you are looking only for MPE-named files, and HFS-named files are not displayed:
If you have other files in the group where you are working, they are listed along with FILE1. The result is the same if you omit @ and type LISTFILE since that is the default when no parameter is included with the command.
You can also use the LISTDIR UDC to list directories:
All the directories in your current working directory are listed when you specify the UDC with no parameters. You can also use the LISTDIR UDC to list directories in a specific location:
This command locates any directories located in PUB.SYS. After you create a directory, you can move to it.
This command moves you to Directory1. Title not available shows you where you moved in the file system. Directory1 is now your current working directory. Again, use a ./ to act on HFS files. If you don't, MPE/iX acts only on MPE-named files. If you try to change to Directory1 without the preceding ./ the system treats the directory name as an MPE name and converts the letters to uppercase. It does not locate the directory.
According to MPE syntax, the file name is limited to eight characters, but actually, two errors occur here. First, the system discovers that the name is longer than eight characters and reports the error. Second, the name is upshifted, and the system looks for DIRECTORY1, which it wouldn't find even if it were fewer than eight characters. If you type
by itself, MPE/iX moves you back to your logon group. Try typing the command. Title not available shows you where you are now. YOURGRP is your current working directory again. |