Previous Topic Next topic Print topic


Displaying a Directory List

You can display a directory list of the files or members of the mainframe system catalog, a partitioned data set or source code control system. You may optionally specify a control file containing one or more commands and allow MFDAS to run them as a batch. To do this, place the commands in a control file of any name, without the preceding MFDAS parameter, then run MFDAS with the parameter @filename, where filename is the name of the control file.

The PREFIX parameter indicates that you are interested in displaying only the members that begin with the specified characters. It is equivalent to using the FILTER parameter of the specified characters followed by an asterisk (*).

The FILTER parameter can specify a specific mainframe member name, or can included special filter characters to allow multiple members to be displayed based on the special filter characters that you specify. These special filter characters are:

Examples of the directory list command are shown below.

CAT

To list data sets based upon a catalog search criteria:

MFDAS CAT
catalogsearchcriteria

Below is an example of the command and its output:

mfdas cat MFI01.COMMS.TEST.SYNC.CNTL
MFI01.COMMS.TEST.SYNC.CNTL
MFI01.COMMS.TEST.SYNC.CNTL.REL
MFI01.COMMS.TEST.SYNC.CNTL.UNL

CATDCB

To list the extended attributes for data sets based upon a catalog search criteria:

MFDAS CATDCB
catalogsearchcriteria

Below is an example of the command and its output:

mfdas catdcb MFI01.COMMS.TEST.SYNC.CNTL
Name=MFI01.COMMS.TEST.SYNC.CNTL                  ,Volume=TEMP1G,DSORG=BPAM,RECFM=FB,BLKSIZE=3120,REC
L=80,Average RECL=0,Max RECL=0,Key Position=0,Key length=0,Reuse=48,Volume type=CYL,Last backup=????

Name=MFI01.COMMS.TEST.SYNC.CNTL.REL              ,Volume=TEMP0F,DSORG=QSAM,RECFM=FB,BLKSIZE=3120,REC
L=80,Average RECL=0,Max RECL=0,Key Position=0,Key length=0,Reuse=48,Volume type=CYL,Last backup=????

Name=MFI01.COMMS.TEST.SYNC.CNTL.UNL              ,Volume=TEMP1L,DSORG=QSAM,RECFM=FB,BLKSIZE=3120,REC
L=80,Average RECL=0,Max RECL=0,Key Position=0,Key length=0,Reuse=48,Volume type=CYL,Last backup=????
 
	 

PDS

To list members of a partitioned data set:

MFDAS DIR PDS
pdsname [{PREFIX prefix | FILTER filter}]

Below is an example of the command and its output:

mfdas dir pds MFI01.COMMS.TEST.SYNC.CNTL filter m0001
M00010          CNTL    13/09/2008:17:23CSIJY1
M00011          CNTL    13/09/2006:40:28CSIJY1
M00012          CNTL    13/09/2006:40:34CSIJY1

Librarian

To list members of a Librarian data set:

MFDAS DIR LIB
libraryname [{PREFIX prefix | FILTER filter}]

Below is an example of the command and its output:

mfdas dir lib MFI01.COMMS.TEST.DATA.LIBR
MEM1            COB     16/01/1304:35:40MFITST
MEM2            DAT     16/01/1304:35:41MFITST
MEM3            DAT     16/01/1304:35:43MFITST

Panvalet

To list members of a Panvalet data set:

MFDAS DIR PAN
libraryname [{PREFIX prefix | FILTER filter}] [USERCODE <code>] [ALL]

Below is an example of the command and its output:

mfdas dir pan MFI01.COMMS.TEST.DATA.PANLIB all
A                DATA     16/01/13 04:35:56 MFITST   12            0 103 N TAE
AAA              DATA     16/01/13 04:35:59 MFITST   1             0 102 N TAE
AAB              DATA     16/01/13 04:36:00 MFITST   1             0 102 N TAE

Where the last column gives the 3-byte Panvalet status code which is a combination of the following:

P - Production | T - Test

A - Active | I - Inactive

E - Enable | D - Disable

Endevor

To list members of an Endevor data set:

MFDAS DIR END
ENV 'env' SYS 'sys' SUB 'sub' 
[{PREFIX prefix | FILTER filter}]
[STG stage] [TYPE type] [ALL|FULL]

Below is an example of the command and its output:

mfdas dir end ENV SMPLPROD SYS FINANCE SUB ACCTPAY filter mem all
MEM1             COPY     16/01/07 04:32:55          FINANCE  ACCTPAY  P 0100
MEM2             COPY     16/01/07 07:39:40          FINANCE  ACCTPAY  P 0100
MEM3             COPY     15/11/25 04:09:39 MFITST   FINANCE  ACCTPAY  E 0100
Previous Topic Next topic Print topic