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


How to create model commands

z/OS DFSMSdfp Storage Administration
SC23-6860-01

To create DFSMSdss commands that delete selected data sets:

  1. Use ISMF to build an ISMF table of the data sets you want deleted.

    _______________________________________________________________

  2. Use the model command facility to build your DSS commands.

    _______________________________________________________________

  3. Specify both the ISMF table and the DSS model command you want applied to all the data sets in the list.

To change the management class assigned to a group of data sets of a given high level qualifier whose user requirements have changed (high level qualifier ABC to management class MCSTAND):

  1. Use ISMF to create a list of data sets that meet the criteria you want.

    _______________________________________________________________

  2. Tailor the list to remove any data sets that you do not want processed by the model command function.

    _______________________________________________________________

  3. Save the ISMF list into a saved table.
    Example of Saved Data Set List:
    ABC.BACKUP.LAB.REVIEW
    ABC.BACKUP.LAB.SCRIPT
    ABC.BACKUP.LAB.JCL
    Note: In steps 1 through 3 of this example, an ISMF-saved list is used as input to generate model commands. The remaining steps (4 through 8) apply to either ISMF-saved lists or DCOLLECT records as model command input.

    _______________________________________________________________

  4. Choose option 11.6. The ISMF " Model Commands Generation Selection Menu" panel appears.

    _______________________________________________________________

  5. Select either option 1 or 2 (11.6.1 or 11.6.2).

    _______________________________________________________________

  6. Fill in the appropriate fields:
    • If you selected option 1 (ACBQFLM1 EXEC), enter the following information in the " Model Commands Generation from Saved ISMF List Entry Panel":
      • In the first field, the name of the table just saved
      • In the second field,
        • ALTER / MANAGEMENTCLAS(newmgmtclas)
        Example of Model Command:
        ALTER / MGMTCLAS(MCSTAND)
    • You can also generate model commands with DCOLLECT data as input, instead of using saved lists. To do this, select option 2 (11.6.2) (ACBQADM2 EXEC) and enter the following information in the "Model Commands Generation from DCOLLECT Data Entry Panel":
      • In the first field, the name of the DCOLLECT data set
      • In the second field,
        • ALTER / MANAGEMENTCLAS(newmgmtclas)

    The model command function uses the same conventions as ISPF option 3.4. That is, a slash (/) may be located in the command wherever the user wants the data set name substituted. An "at" sign (@) may be used in the command wherever the user wants the volume serial number, which a data set resides on substituted. However, only two slashes and one @ may be used in each model command.

    Attention: There is no syntax checking performed for the command entered by the user. It is the user’s responsibility to correctly enter the command to be created against the entries in the table or DCOLLECT data.

    Example Output from Command Generation:
    ALTER ABC.BACKUP.LAB.REVIEW MGMTCLAS(MCSTAND)
    ALTER ABC.BACKUP.LAB.SCRIPT MGMTCLAS(MCSTAND)
    ALTER ABC.BACKUP.LAB.JCL MGMTCLAS(MCSTAND)

    This output will be created in a sequential data set with the name USERID.Mxx.MODELCMD, where xx varies from 1 to 99.

    _______________________________________________________________

  7. Add JCL to the commands to complete the job. When the command generation completes, you are placed in ISPF "edit."
    Example Job:
    //ALTER JOB ----
    //STEP1 EXEC PGM=IDCAMS
    //SYSPRINT DD SYSOUT=*
    //SYSIN    DD *
          ALTER ABC.BACK.LAB.REVIEW MGMTCLAS(MCSTAND)
          ALTER ABC.BACK.LAB.SCRIPT MGMTCLAS(MCSTAND)
          ALTER ABC.BACK.LAB.JCL MGMTCLAS(MCSTAND)
    /*
    Note: You can also use the SYSIN DD statement to reference the sequential data set that contains the output commands instead of the SYSIN statement followed by commands as shown above.

    _______________________________________________________________

  8. Submit the job for execution.

The model command facility can also be used with volume lists from ISPF tables or DCOLLECT data. The following example using volume lists creates a job to DEFRAG all volumes in an ISMF volume list:

Example of Saved List:
SCR001 -------
SCR002 -------
SCR003 -------
SCR004 -------
SDV000 -------
SDV001 -------
SHR200 -------
Example of Model Command:
DEFRAG DYNAM (@)
Example Output Command Generation:
DEFRAG DYNAM(SCR001)
DEFRAG DYNAM(SCR002)
DEFRAG DYNAM(SCR003)
DEFRAG DYNAM(SCR004)
DEFRAG DYNAM(SDV000)
DEFRAG DYNAM(SDV001)
DEFRAG DYNAM(SHR200)
Example Job:
//DEFRAG JOB  ----
//STEP1 EXEC PGM=ADRDSSU, PARM='TRACE=YES'
//SYSPRINT DD SYSOUT=*
//SYSIN    DD *
  DEFRAG DYNAM(SCROO1)
  DEFRAG DYNAM(SCR002)
  DEFRAG DYNAM(SCR003)
  DEFRAG DYNAM(SCR004)
  DEFRAG DYNAM(SDV000)
  DEFRAG DYNAM(SDV001)
  DEFRAG DYNAM(SHR200)
/*
Note: During the model command generation, only the first two slashes (//) and the first "at" sign (@) will be substituted.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014