11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DELET6 JOB ...<br />

//STEP1 EXEC PGM=IDCAMS<br />

//SYSPRINT DD SYSOUT=A<br />

//SYSIN DD *<br />

DELETE -<br />

USER.CATALOG -<br />

PURGE -<br />

USERCATALOG<br />

/*<br />

Figure 6-23 Delete an empty user catalog<br />

Important: The FORCE parameter deletes all data sets in the catalog. The DELETE command<br />

deletes both the catalog and the catalog's user catalog connector entry in the master<br />

catalog.<br />

Delete a migrated data set<br />

A migrated data set is a data set moved by DFSMShsm to a cheaper storage device to make<br />

room in your primary DASD farm. Catalog management recognizes that a data set is<br />

migrated by the MIGRAT volser in its catalog entry. A migrated data set can be DELETE<br />

SCRATCH (TSO DELETE issues the DFSMShsm HDELETE command) or N<strong>OS</strong>CRATCH.<br />

Where:<br />

SCRATCH This means that the non-VSAM data set being deleted from the catalog is to<br />

be removed from the VTOC <strong>of</strong> the volume on which it resides. When<br />

SCRATCH is specified for a cluster, alternate index, page space, or data<br />

space, the VTOC entries for the volumes involved are updated to reflect the<br />

deletion <strong>of</strong> the object.<br />

N<strong>OS</strong>CRATCH This means that the non-VSAM data set being deleted from the catalog is to<br />

remain in the VTOC <strong>of</strong> the volume on which it resides, or that it has already<br />

been scratched from the VTOC. When N<strong>OS</strong>CRATCH is specified for a<br />

cluster, page space, alternate index, or data space, the VTOC entries for the<br />

volumes involved are not updated.<br />

To execute the DELETE command against a migrated data set, you must have RACF group<br />

ARCCATGP defined. In general to allow certain authorized users to perform these operations<br />

on migrated data sets without recalling them, perform the following steps:<br />

1. Define a RACF catalog maintenance group named ARCCATGP.<br />

ADDGROUP (ARCCATGP)<br />

2. Connect the desired users to that group.<br />

Only when such a user is logged on under group ARCCATGP does DFSMShsm bypass the<br />

automatic recall for UNCATALOG, RECATALOG, and DELETE/N<strong>OS</strong>CRATCH requests for<br />

migrated data sets. For example, the following LOGON command demonstrates starting a<br />

TSO session under ARCCATGP. For further information about ARCCATGP group, see z/<strong>OS</strong><br />

DFSMShsm Implementation and Customization Guide, SC35-0418.<br />

LOGON userid | password GROUP(ARCCATGP)<br />

To delete a migrated data set, but the data set is not recorded in the HSM control data sets,<br />

execute a DELETE N<strong>OS</strong>CRATCH command for the data set to clean up the ICF catalog.<br />

350 <strong>ABCs</strong> <strong>of</strong> z/<strong>OS</strong> <strong>System</strong> <strong>Programming</strong> <strong>Volume</strong> 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!