Although the previous options are highly recommended as first alternatives (and you can be able to think of several others), the point can still be reached when defragging the volume must be done. The following comments outline a method to do this with the ARCHIVE and RECOVER commands, as well as providing some added benefits and tips to keep in mind.
To CA Disk, a volume defrag means the following:
A recommended approach to doing this with CA Disk is as follows:
The following JCL can be used as a guideline for defragging a disk volume.
//jobname JOB (acct,info),etc. //INIT EXEC PGM=ADSMI002,PARM=ADSDM100 //STEPLIB DD DISP=SHR,DSN=CA.DISK.CCUWLOAD //ABNLDUMP DD DUMMY //CMDPRINT DD SYSOUT=A //FILES DD DSN=CAI.DISK.DEFRAG.volser.FILES // DISP=(,CATLG,DELETE),UNIT=SYSDA, // DCB=(DSORG=DA),SPACE=(CYL,2,,CONTIG) //MSGPRINT DD SYSOUT=A //PARMLIB DD DISP=SHR,DSN=CAI.DISK.CCUWPARM //SYSPRINT DD SYSOUT=A //SYSUDUMP DD SYSOUT=A
//DEFRAGV EXEC DMS //SYSIN DD * //FILES DD DISP=SHR,DSN=CAI.DISK.DEFRAG.volser.FILES SCAN REALVOLS SELECT VOL=volser ARCHIVE
//RECOVER EXEC FMS //FILES DD DISP=SHR,DSN=CAI.DISK.DEFRAG.volser.FILES //SYSPARMS DD * PREALLOCN no need to restore if not scratched after archive VSPREDEFN no need to restore if not scratched after archive //SYSIN DD * SCAN DSNINDEX SELECT DSN=dsnames RECOVER TOVOL=volser
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|