DIRECTORY Function — SVCommands™ — ADPAC Corporation

Products › SVCommands™ › DIRECTORY

DIRECTORY

The DIRECTORY function will list selected members of a library, and their ISPF statistics, if present. This example consists of three steps. The first two steps use the DIRECTORY function to create a list of member names. The first step selects members beginning with 'CTL' by setting the MEMBER name mask to 'MEM=CTL*'. In the second step, the mask is 'MEM=APPL*'. The two steps create two directory lists: one contains only members beginning with 'CTL'; the other contains only members beginning with 'APPL'. The third step combines these two directory lists into a single list, containing all the program names that begin with 'CTL' and 'APPL'. Using this technique, applications that use or share the same data can be processed by SVCommands at the same time.

@SV INPUT:
@SV.DIRECTOR TITLE='DIR: '
@SV MEM=CTL*
@SV CAT=WEBDIR01
@SV ERR=GO,PMR=NO

MEMBER DIRECTORY ALL=CTL  DSN:ADPRBH1.ZEX.SOURCE
ADPAC, USE BY AGREEMENT ONLY   06/14/2003   PAGE 1

RPT USER   MEMBER   LAST MODIFIED          LINE
CODES NAME     YEAR/MO/DA HR:MN  VER.LEV  SIZE  USER ID
1 CTLCRE8  2003/06/01 14:22  001.000  115  ADPRBH2
2 CTLRPT   2003/06/01 14:22  001.000  298  ADPRBH2
3 CTLSTAT  2003/06/01 14:22  001.000  216  ADPRBH2
4 CTLUPDT  2003/06/01 14:23  001.000  340  ADPRBH2

PM@DTY-M04 WEBDIR01 REPLACED IN PMLIB AS: DILIST
PM@000-10 NORMAL EOJ  CPU HRS:00 MIN:00 SEC:00.97

@SV INPUT:
@SV.LIST TITLE='LIS: '
@SV DIL=(WEBDIR01,WEBDIR02)
@SV CAT=WEBDIR03
@SV ERR=GO,PMR=NO

MEMBER DIRECTORY A WEBDIR03 (combined CTL* and APPL*)
LIS: ADPAC, USE BY AGREEMENT ONLY   06/14/2003   PAGE 1

RPT USER   MEMBER   LAST MODIFIED          LINE
CODES NAME     YEAR/MO/DA HR:MN  VER.LEV  SIZE  USER ID  TYPE STA
1 2 APPLLOAD
2 2 APPLMAIN
3 2 APPLRFMT
4 2 APPLSRCH
5 1 CTLCRE8  2003/06/01 14:22  001.000  115  ADPRBH2
6 1 CTLRPT   2003/06/01 14:22  001.000  298  ADPRBH2
7 1 CTLSTAT  2003/06/01 14:22  001.000  216  ADPRBH2
8 1 CTLUPDT  2003/06/01 14:23  001.000  340  ADPRBH2

PM@LIS-M04 WEBDIR03 REPLACED IN PMLIB AS: DILIST SEE WEBDIR03
PM@000-10 NORMAL EOJ  CPU HRS:00 MIN:00 SEC:02.53