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.

ALTERTable 4. How NEWNAME Resolves When Change of Catalog is RequiredData Set Type SMS Non-SMSVSAMnon-VSAM with no aliasesnon-VSAM with aliasesGDS with no aliasesGDS with aliasesALTER unsuccessful—entrynot renamedALTER successful—entry isrecataloged in target catalog.ALTER unsuccessful—entrynot renamedALTER successful—entry isrecataloged in target catalog.ALTER unsuccessful—entrynot renamedALTER successful—entryremains in the source catalogALTER successful—entryremains in the source catalogALTER successful—entryremains in the source catalogALTER unsuccessful—entrynot renamedALTER unsuccessful—entrynot renamedNote: The source catalog is the catalog containing the original entry. The target catalog isthe catalog in which the new name would normally be cataloged according to a catalogalias search.Restriction: Do not change the name of a data set <strong>for</strong> which there are backouts that need to be done. If you change the data set name in this case, it isimpossible to back out the changes and the data set is in an inconsistent state,which can cause data integrity problems.If you want to define a data set into a particular catalog, and that catalog isnot the one chosen according to the regular search, then you must haveauthority to RACF STGADMIN.IGG.DIRCAT facility class. For morein<strong>for</strong>mation on this facility class see z/<strong>OS</strong> <strong>DFSMS</strong>dfp Storage AdministrationReference.To give an altered entry a new name:vvvvvUnless the data set being renamed is a path, the data set’s volume must bemounted because the volume table of contents (VTOC) is modified.You can use the FILE parameter to supply a JCL DD statement to allocatethe data set. If you do not supply a DD statement, an attempt is made toallocate the data set dynamically. The volume must be mounted as eitherpermanently resident or reserved.If another program has access to the data set while this is being done, theprogram might not be able to access the data set after it is renamed. This canresult in an error.If you include generic names, you must define both entryname andnewname as generic names.If you are renaming a member of a non-VSAM partitioned data set, thenewname must be specified in the <strong>for</strong>mat: pdsname(membername).If you are renaming a VSAM data set that is RACF protected, the existingRACF data set profile will be renamed.If you are using ALTER NEWNAME, you must have the followingauthority:– ALTER authority <strong>for</strong> the source data set or <strong>for</strong> the catalog containing thesource data set– ALTER authority <strong>for</strong> the target data set or <strong>for</strong> the catalog containing thetarget data set, or CREATE authority <strong>for</strong> the groupChapter 5. ALTER 65

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

Saved successfully!

Ooh no, something went wrong!