Using the FILELIST Command

Use the FILELIST command to display information about your CMS files. If your files are stored in an SFS file pool, you can use FILELIST for files in accessed directories.

Entering the FILELIST command will display a screen of information similar to the one shown in Figure 1.
Figure 1. Sample FILELIST Screen
yourid  FILELIST A0  V 108  Trunc=108 Size=7 Line=1 Col=1 Alt=0
Cmd Filename Filetype Fm Format Lrecl    Records     Blocks   Date     Time
    ANIMAL   DATA     A1 V         95         34          1  8/04/00 21:12:04
    BANANA   DATA     A1 V         95         29          1  8/04/00 20:58:07
    BEAR     NOTE     A1 V        107        281          5  8/04/00 17:59:00
    HONEY    DATA     A1 V         92        101          2  8/02/00 15:33:05
    ALL      NOTEBOOK A0 V        120        277          4  7/24/00  9:14:02
    TIGER    NOTE     A1 V         26          7          1  7/23/00 16:50:06
    ZOOKEEP  NETDATA  A1 V         80        489         10  6/26/00 16:05:08
 
 
 
 
 
 
 
 
 
 
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

This FILELIST screen shows information about the files on file mode A.

  • The first line has information about the FILELIST display itself. Your user ID appears instead of yourid. Size shows the number of files in the list. Line tells which file in the list is the first on this screen.
  • There are several columns in the FILELIST display:
    • Cmd is where you would enter commands for a specific file or directory listed.
    • Filename, Filetype, and Fm indicate the file name, file type, and file mode of the file. For SFS, names of subdirectories are listed in the Filename column, but the Filetype column is blank.
    • Format shows the format of a file. An F is displayed for a fixed format file, V for a variable format file, and DIR for an SFS directory.
    • Lrecl, Records, and Blocks, carry information on the size of the file shown. Listings for SFS directories show a dash (—) in the columns for Lrecl, Records, and Blocks.
    • Date and Time show when a file was last updated. For SFS directories, these columns show when the directory was created.
  • The bottom of the screen shows the current PF key settings.

FILELIST provides you with the same information as the LISTFILE command, but also lets you edit files and enter commands from the list. You can also enter XEDIT subcommands to manipulate the list itself.

For SFS, like LISTFILE, the FILELIST command has several options that allow you to display different information about your files and directories. The default option is FILELIST STATS. The FILELIST STATS screen is similar to one displayed for a non-SFS user except for the directory name identifier, appearing in the top left portion of the screen.

Figure 2. Sample FILELIST STATS Screen
 
ZOOKEEP FILELIST A0  V 108  Trunc=108 Size=8 Line=1 Col=1 Alt=0
Directory = VMSYSU:ZOOKEEP.
Cmd Filename Filetype Fm Format Lrecl    Records     Blocks   Date     Time
    ANIMAL   DATA     A1 V         95         34          1  8/04/00 21:12:04
    BANANA   DATA     A1 V         95         29          1  8/04/00 20:58:07
    BEAR     NOTE     A1 V        107        281          5  8/04/00 17:59:00
    HONEY    DATA     A1 V         92        101          2  8/02/00 15:33:05
    ALL      NOTEBOOK A0 V        120        277          4  7/24/00  9:14:02
    TIGER    NOTE     A1 V         26          7          1  7/23/00 16:50:06
    ZOOKEEP  NETDATA  A1 V         80        489         10  6/26/00 16:05:08
 

SFS also provides you with SHARE, SEARCH, and ALLDATES options of FILELIST to display other information about your files and directories. Using the Shared File System shows example screens for the FILELIST options. For more information, see z/VM: CMS Commands and Utilities Reference.