2011年10月21日 星期五

How to delete VSAM datasets left on the dasd but not in the catalog

How to delete VSAM datasets left on the dasd but not in the catalog
//STEPNAME EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//VOLUME DD DISP=OLD,UNIT=SYSALLDA,VOL=SER=volser
//SYSIN DD *
DELETE orphaned.dataset.name -
VVR - FILE(VOLUME)
/*
Replace "volser" with the actual volume serial. Replace "orphaned.dataset.name" with the real dataset name. For a KSDS, this would probably really require TWO DELETE commands. One for the .DATA and one for the .INDEX. The other way is to print the VVDS and find the original catalog name. You would then create a new ICF catalog with that name. You could then do a DEFINE RECATALOG followed by a DELETE. I find using the DELETE VVR to be faster.

2011年10月7日 星期五

Nice song

夏川りみ さようなら ありがとう ~天の風~