|
|
| Author |
Message |
rarvins
New User
Joined: 24 Jan 2007 Posts: 42 Location: India
|
|
|
|
Hi,
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?
Thanks |
|
| Back to top |
|
 |
References
|
Posted: Wed Jul 09, 2008 9:47 pm Post subject: Re: Backup datasets using REXX |
 |
|
|
 |
Pedro
Active User
Joined: 01 Sep 2006 Posts: 274 Location: work
|
|
|
|
From a rexx program, you can use the LMDINIT and LMDLIST services of ISPF to get the list of names.
Use LMDINIT to specify your dataset HLQ, including wildcard
Use LMDLIST to get the dataset names. Issue your HMIGRATE commands for each name. |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2538 Location: italy
|
|
|
|
backup or migrate ????
the subject says backup, but the text talks about migrate,
please take a decision...
is it a recurrent task or just once in a while execution ? |
|
| Back to top |
|
 |
rarvins
New User
Joined: 24 Jan 2007 Posts: 42 Location: India
|
|
|
|
| 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 |
|
| Back to top |
|
 |
Pedro
Active User
Joined: 01 Sep 2006 Posts: 274 Location: work
|
|
|
|
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'. |
|
| Back to top |
|
 |
Pedro
Active User
Joined: 01 Sep 2006 Posts: 274 Location: work
|
|
|
|
| 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. |
|
| Back to top |
|
 |
|
|