09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

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.

Alter a Data Set Expiration Date: Example 6In this example, an ALTER command is used to modify the expiration date of dataset MOD.ALTER.EXAMPLE with the keyword TO.//ALTER5 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *ALTER -MOD.ALTER.EXAMPLE -TO(2005123)/*ALTER||The command’s parameters are:vvMOD.ALTER.EXAMPLE is the name of the data set.TO changes the expiration date of the data set by name. The year (2005) is afour-digit number, concatenated with the day (123).Migrate a DB2 ® Cluster to a Linear Data Set Cluster: Example7In this example, ALTER is used to alter a DB2 cluster, EXAMPLE.ABC01,, to alinear data set cluster.//DB2TOLDS JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *ALTER -EXAMPLE.ABC01 -TYPE(LINEAR)/*The command’s parameter TYPE(LINEAR) requests ALTER change the data settype from ESDS to LDS.Alter a Cluster Name and the Associated Data and IndexNames: Example 8In this example, ALTER is used to rename a cluster and its associated data andindex entries.//EXAMPL JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DEFINE CLUSTER -(NAME(EXAMPLE.KSDS) -TRK(1 1) -VOL (338001)) -DATA -(NAME(EXAMPLE.KSDS.DATA)) -INDEX -(NAME(EXAMPLE.KSDS.INDEX))ALTER -EXAMPLE.KSDS -NEWNAME(EXAMPLE.TEST)ALTER -EXAMPLE.KSDS.* -NEWNAME(EXAMPLE.TEST.*)/*Chapter 5. ALTER 75

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

Saved successfully!

Ooh no, something went wrong!