Using FILELIST to Display Some of Your Files

You can also use FILELIST to display only some of your files. For example, all files that have the same file name, or the same file type, or all files that begin with a certain letter, and so forth.

The FILELIST command has the format:
FILEList filename filetype filemode

If you do not substitute a letter for filemode, a file mode of A is assumed. In our examples, all the files are on file mode A (the directory or minidisk accessed with a file mode of A).

Suppose you have several files that concern stock inventory. You know that they all have the same file name, STOCK, but you do not remember the different file types. To see a list of all the files on file mode A with the file name STOCK, you would enter:
filel stock *

The asterisk means all. Typing an asterisk where you would usually type a file type means that you want the list to contain all file types with the file name STOCK.

The FILELIST display might look like this:

 SOMEONE     FILELIST    A0  V 108  Trunc=108 Size=6 Line=1 Col=1 Alt=0
Directory = VMSYSU:yourid.
Cmd   Filename Filetype Fm Format Lrecl Records Blocks   Date     Time
_     STOCK    BOLTS    A1 V         95       7      1  5/04/90 21:15:04
      STOCK    GADGETS  A1 V         95       8      1  5/04/90 21:12:04
      STOCK    NUTS     A1 V         95       4      1  5/04/90 20:58:07
      STOCK    SCREWS   A1 V        107       5      1  5/04/90 17:59:00
      STOCK    SURPLUS  A1 V         92       3      1  5/02/90 15:33:05
      STOCK    WIDGETS  A1 V         75      12      1  4/25/90 12:10:03










1= Help      2= Refresh  3= Quit    4= Cancel      5= Sort(dir)   6= Sort(size)
7= Backward  8= Forward  9= FL /n  10= Share      11= XEDIT/LIST 12= Cursor

====>
                                                           X E D I T  1 File
Note: Remember, your FILELIST screens will look slightly different if your files are stored on a minidisk.
The FILELIST command can also be used to list files having the same file type, but different file names. Just use an asterisk where you would usually type the file name. For example:
filel * data

The list would contain all files whose file type is DATA.

If you want to create a file and do not remember if you already have a file with the file identifier you want to use, you can enter:
FILEL filename filetype

If the file exists, FILELIST will show only that file. If not, a message tells you that the file was not found.

Sometimes you may not remember an entire file name or a whole file type. When you have many files, this can happen. You can give the computer clues to display a list of files containing the file you want.

For example, suppose you know you have several files whose file names all start with COM and whose file type is DATA. To list all those files, you would enter:
filel com* data

The command means you want the list to contain all files whose file name starts with COM and whose file type is DATA. The resulting FILELIST display might contain these files:

COMBAT    DATA  A
COMMERCE  DATA  A
COMPARE   DATA  A
COMPOST   DATA  A
COMPUTER  DATA  A

You can use an asterisk to represent any letters you cannot remember. The asterisk can be used anywhere in the file name or file type. For example:

The command
filel *data daily1

might show these files:

HISDATA   DAILY1  A
HERDATA   DAILY1  A
MYDATA    DAILY1  A
YOURDATA  DAILY1  A
And this command
filel *data daily*

might list these files:

YOURDATA  DAILY2  A
YOURDATA  DAILY1  A
MYDATA    DAILY1  A
ITSDATA   DAILY2  A
HERDATA   DAILY1  A
HISDATA   DAILY2  A
HISDATA   DAILY1  A
When you enter a FILELIST command and do not specify a file mode, a file mode of A is assumed. If you want the list to contain files on any other modes, you must give that file mode. For example,
filel * data b
lists all the files on file mode B whose file type is DATA. Similarly,
filel * data *

lists all files whose file type is DATA.