|
|
Using HP 3000 MPE/iX: Fundamental Skills Tutorial: HP 3000 MPE/iX Computer Systems > Chapter 6 Working with FilesLesson 1 Displaying Qualified File Names |
|
Lesson 1 presents displaying file names.
A time may come when you need to use a file that resides in another group or account.
A fully qualified file name is the file name, plus a group name, plus an account name. This information instructs the system to look for the file in the designated group and account. (DOCUMENT.MYGROUP.ANYACCT). You need to know:
The fully qualified name of the file above is
The punctuation is important.
You can enter the file name in uppercase or lowercase letters or in a combination of uppercase and lowercase letters. How much of the fully qualified file name you need to use depends upon where the file is found and how you logged on. Table 6-1 Qualified File Names
Logon identifiers and fully qualified file names are very similar in appearance, and the similarity can be confusing. In fact, something like ROTOR.CAD could be either of these:
The only way of telling which it is, is to examine the way it is used. What command precedes it? If the command is HELLO, you know that you are looking at a logon identifier; that is, a user name and an account name. If a text or file-handling command precedes it (COPY, PURGE, RELEASE, SECURE, which you learn about later in this module), you know that you are looking at a file name and a group name. If you see ROTOR.CAD.MANUF, you would know immediately that you are looking at a fully qualified file name. How would you know?
Examine the two patterns together (the extra spaces are for clarity only). LOGON: session , user . account , group FILE NAME: file . group . account Recall that a session name and a group name are optional in a logon identifier. Those optional elements are always set off from the user name and account name by a comma ( , ). So....
Do you recall what command shows you all of the files in your current group? Log on to your PUB group. Enter:
Do the file names in the PUB group appear on the screen? They should. If you work in more than one group, it may become difficult to keep track of all of your files. Fortunately, LISTFILE can be selective about the file names that it displays. It can also display file names outside your current group. Log on to your home group. Your logon group should be MYGROUP (or its equivalent if you do not have MYGROUP). Using your username and accountname, enter:
MPE/iX allows you to display file names that are alike in some way. This is useful if you have established a naming convention for files that contain related information. To display all of the file names that begin with D, do this:
You will see the names of all of the files in your home group that begin with the letter "D." The @ Symbol (Shift2 on your keyboard) is the symbol for all combinations of letters. The symbol @ is called a wildcard character. In some card games, a "wild card" can take on any legitimate value that the player wants. In MPE/iX, @ can represent anywhere from zero to eight characters and take on all of the possible letter and number values (A - Z and 0 - 9). D@ means, literally, all of the files that begin with the letter "D" followed by any other combination of zero to seven characters. What do you suppose this will show?
Try it. It shows all of the file names that contain the number 2, if there are any.
You can use the @ symbol to have LISTFILE display the file names found in other groups and accounts. To see all of the file names in PUB group, enter:
The names of the files in PUB should appear on the screen. To see the names of files in OTHERGRP that begin with R, do this:
Now enter this:
You should see all of the file names in all of the groups in your account. If there are many files, the names will scroll by quickly. Use STOP or CTRLS to stop the scroll. Use another STOP or CTRLQ to resume the scroll. Or, use PREV to jump backwards, one screen at a time. Use NEXT to return to your starting position.
What happens if you enter this?
You should see all the file names in all the groups in all the accounts on your MPE/iX system—and that could be many files. To stop the display, press the BREAK key. To restrict the search to some account, such as SYS, you could specify:
You would see all of the file names ending in the letter "S" that are found in the PUB group of the SYS account. This is a fully qualified file name, but the wildcard character @ is used to specify a set of the files in the PUB group of SYS. What would you see if you entered this?
You would see all of the files that begin with the letter K in all of the groups of the SYS account. Be ready to use BREAK. Try this:
You should see a listing of all of the files beginning with the letter "D" in any group called MYGROUP anywhere on your system. Are you having difficulty recalling exactly which group contains the file you are looking for? There is a solution, and it involves another way of using the LISTFILE command. Recall that @ means all file names. Recall, too, that @.@ means all of the files in all of the groups of the account to which you are logged on. Now do this:
What happened? Did you get a list of file names, perhaps quite a few file names, that are in the account to which you are logged on? All of the names are in their fully qualified form. Now that you have the fully qualified file name, you can see at a glance not only the name of the file, but the group and account in which the file is found. To find the location of one particular file, try this:
The ,6 tells LISTFILE to list the fully qualified file name that identifies (and locates) the file called FILENAME. The LISTFILE command has other features, not covered here. If you are interested in finding out what those features are, refer to the help facility.
|
|