If you have DFSMShsm, HSM has a simple MIGRATE DSNAME(dsname) MOVE command that will invoke SMS ACS for volume selection and move the data set (any type) to a new volume. Under the covers, HSM invokes DFSMSdss COPY w/ DELETE, w/o you having to create all of the JCL based on data set type.
It can also be issued at the VOLUME and STORAGEGROUP level to drain a volume or storage group. For example, it's a simple single command that can be used to migrate from smaller volumes to newly defined larger volumes. It will even close open Db2 objects, move them and then automatically reopen. https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.arcf000/s4388.htm ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN