z/OS DFSMSdfp Storage Administration
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Sample JCL for storage group volume add/Delete

z/OS DFSMSdfp Storage Administration
SC23-6860-01

To delete a volume, specify the following:
  • SCDSNAME
  • SG
  • VOL
  • VOLDEL for the DDNAME
Figure 1. Sample JCL for ACBJBAIB
//********************************************************************
//*                                                                  *
//* SAMPLE JCL TO ADD NEW VOLUMES AND THEIR STATUS                   *
//*                                                                  *
//*   INSTRUCTIONS BEFORE SUBMITTING:                                *
//*                                                                  *
//*      CHANGE JOBCARD                                              *
//*      CHANGE PREFIX                                               *
//*      CHANGE PARAMETERS                                           *
//*                                                                  *
//*      TEMPFILE - LISTING DATA SET (OUTPUT)                        *
//*      VOLADD   - VOLUMES TO BE ADDED (INPUT)                      *
//*                                                                  *
//*   PARAMETERS:                                                    *
//*                                                                  *
//* Required Fields:                                       2@WA49380 *
//*                                                                  *
//*      SCDSNAME - SOURCE CONTROL DATA SET                          *
//*      VOL      - VOLUME                                           *
//*      SG       - STORAGE GROUP                                    *
//*                                                        3@WA49380 *
//* Optional Fields:                                                 *
//*                                                                  *
//*      STATUS   - STATUS (ENABLE/NOTCON/DISALL/DISNEW/QUIALL/      *
//*                         QUINEW)                                  *
//*                Up to 32 statuses can be specified separated by   *
//*               commas to match the 32 systems.  If a status is    *
//*               skipped, the system status that falls in between 2 *
//*               commas will have default value of ENABLE.  @WA29937*
//*                                                       13A@WA53756*
//*      STATUSALL - STATUSALL (ENABLE/NOTCON/DISALL/DISNEW/QUIALL/  *
//*                         QUINEW)                                  *
//*                If Volume status in all the Systems needs to be   *
//*               set to a single value (for example ENABLE),        *
//*               STATUSALL is an easier option compared to the      *
//*               parameter STATUS.                                  *
//*                                                                  *
//*           Note:  STATUSALL and STATUS are mutually exclusive.    *
//*                  And so, while specifying value for one of these *
//*                  parameters, either the other parameter should   *
//*                  not be specified or if specified, it should not *
//*                  have any value specified.                       *
//*                                                                  *
//*      UPDHLVLSCDS - When modifying an SCDS, that was formatted    *
//*                    with a higher level of SMS, using a lower     *
//*                    level of SMS will make this application fail  *
//*                    unless you specify the UPDHLVLSCDS parameter  *
//*                    as 'Y'.  Default is 'N'.              @WA41441*
//*                                                                  *
//*                      If specified, this should be the first      *
//*                    parameter on  either VOLDEL or ADDVOL DD      *
//*                    names.                                @WA41441*
//*                                                                  *
//*                    Possible values : Y/N/BLANK           @WA41441* 
Figure 2. Sample JCL for ACBJBAIB (continued)
//*                                                                  *
//*   To DELETE volume, specify SCDSNAME, VOL and SG,                *
//*    and use VOLDEL for DDname.                            @WA29937*
//*                                                                  *
//*   To ALTER Volume, specify all the parameters as in VOLUME 11@U1A*
//*   ADD and use VOLALT as DDname.                                  *
//*                                                                  *
//*   Specify '+' as the continuation character.  When splitting a   *
//*    word or a parameter to the next line, and there should not    *
//*    be any spaces, don't leave any blank spaces before the        *
//*    continuation character '+'.                           @WA41026*
//*                                                                  *
//*   If you specify all the three types of commands DELETE, ADD and *
//*   DEFINE then DELETEs are processed first, ALTERs are processed  *
//*   next and ADDs are processed finally irrespective of the order  *
//*   of the commands in the JOB.                                    *
//********************************************************************
//ADDVOL1 EXEC ACBJBAOB,
//        PLIB1='SYS1.DGTPLIB',
//        TABL2=userid.TEST.ISPTABL
//SYSUDUMP DD  SYSOUT=*
//TEMPFILE  DD  DSN=&&VOLADDS,DISP=(NEW,KEEP),
//  SPACE=(TRK,(1,1)),LRECL=300,RECFM=F,BLKSIZE=300
//SYSTSIN  DD *
PROFILE PREFIX(IBMUSER)
ISPSTART CMD(ACBQBAI9) +
BATSCRW(132) BATSCRD(27) BREDIMAX(3) BDISPMAX(99999999)
/*
//VOLADD  DD  *
UPDHLVLSCDS()
SCDSNAME(MYCDS) VOL(SMS900) SG(PRIMARY) STATUS(ENABLE)
SCDSNAME(MYCDS) VOL(SMS901) SG(PRIMARY) STATUS(DISALL,+
ENABLE,,DISNEW,,NOTCON,DISALL,ENABLE,QUIALL)
SCDSNAME(MYCDS) VOL(SMS902) SG(PRIMARY) +
STATUS(DISNEW)
SCDSNAME(MYCDS) VOL(SMS903) SG(PRIMARY) +
STATUS(DISALL,DISNEW,ENABLE,NOTCON,DISALL,DISNEW,DISALL,QUIALL,+
DISALL,QUINEW,ENABLE,NOTCON,QUIALL,DISNEW,DISALL,QUIALL,+
DISNEW,ENABLE,ENABLE,DISNEW,QUIALL,DISALL,DISALL,NOTCON,+
NOTCON,QUINEW,ENABLE,NOTCON,QUIALL,DISNEW,ENABLE,QUIALL)
SCDS(MYCDS) VOL(SMS) FROM(14) TO(20) SUF(1) TYPE() SG(PRIMARY) STATUS(ENABLE)
SCDS(MYCDS) VOL(SMSA) FROM(A) TO(X) SUF(Y) TYPE(A) SG(PRIMARY) STATUS(ENABLE)
SCDS(MYCDS) VOL(SMSX) FROM(1) TO(C) SUF(G) TYPE(X) SG(PRIMARY) STATUS(ENABLE)
SCDSNAME(MYCDS) VOL(SMS904) SG(PRIMARY) STATUS(ENABLE)
SCDSNAME(MYCDS) VOL(SMS905) SG(PRIMARY) STATUS(ENABLE)
SCDSNAME(MYCDS) VOL(SMS906) SG(PRIMARY) STATUS(ENABLE)
SCDSNAME(MYCDS) VOL(SMS907) SG(PRIMARY) STATUS(ENABLE)
SCDSNAME(MYCDS) VOL(SMS908) SG(PRIMARY) STATUS(ENABLE)
SCDSNAME(MYCDS) VOL(SMS909) SG(PRIMARY) STATUS(ENABLE)
SCDSNAME(MYCDS) VOL(SMS910) SG(PRIMARY) STATUS(ENABLE)
SCDSNAME(MYCDS) VOL(SMS911) SG(PRIMARY) STATUSALL(ENABLE)
SCDSNAME(MYCDS) VOL(SMS912) SG(PRIMARY) STATUS(ENABLE) STATUSALL()
SCDSNAME(MYCDS) VOL(SMS913) SG(PRIMARY) STATUS() STATUSALL(ENABLE)
/*
//VOLALT  DD  *                                              /* 4@U1A*/
/*
//VOLDEL  DD *
/*
//ADDVOL2 EXEC ACBJBAOB,
//        PLIB1='SYS1.DGTPLIB',
//        TABL2=userid.TEST.ISPTABL
//SYSUDUMP DD  SYSOUT=*
//SYSTSIN  DD DSN=&&VOLADDS,DISP=(OLD,DELETE)
//********************************************************************

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014