I have a lot of datasets having similar high level qualifiers that need to be migrated. example....ABCD.T1.T2 I have to issue HMIGRATE command to all the datasets that start with these qualifiers....Is there a way that I can automate this thru REXX rather than bringing up all of them in 3.4 and issuing the command manually?
I need to archive the datasets to by issuing HMIGRATE command and it is a recurring activity. But the activity will not be a scheduled process. It will be triggered manually when required
If it is a recurring activity, you probablly want to use HBACK instead of HMIGRATE.
HBACK takes a snapshot of the original dataset, but leaves the original where it was. So maybe you can have several generations (depends on HSM options). HMIGRATE moves the original dataset from DASD to HSM storage. If you try to HMIGRATE again, it will say 'already migrated'.
Did you know that HSM automatically creates occasional backups of updated datasets and automatically migrates infrequently used datasets? It can also take full volume dumps of DASD. Perhaps your efforts are not needed.