To create DFSMSdss commands that delete selected data sets:
- Use ISMF to build an ISMF table of the data sets you want deleted.
_______________________________________________________________
- Use the model command facility to build your DSS commands.
_______________________________________________________________
- 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):
- Use ISMF to create a list of data sets that meet the criteria
you want.
_______________________________________________________________
- Tailor the list to remove any data sets that you do not want processed
by the model command function.
_______________________________________________________________
- 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.
_______________________________________________________________
- Choose option 11.6. The ISMF " Model Commands Generation Selection
Menu" panel appears.
_______________________________________________________________
- Select either option 1 or 2 (11.6.1 or 11.6.2).
_______________________________________________________________
- 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":
- 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.
_______________________________________________________________
- 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.
_______________________________________________________________
- 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.