View previous topic :: View next topic
|
Author |
Message |
rarvins
New User
Joined: 24 Jan 2007 Posts: 59 Location: Texas
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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
Superior Member
Joined: 14 Mar 2007 Posts: 10873 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: 59 Location: Texas
|
|
|
|
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
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
kranthikumarb
Active User
Joined: 02 Jan 2009 Posts: 115 Location: Hyderabad
|
|
|
|
Hi,
when we issue a HBACK command, what will be the name of the dataset that is backed up. In my case, I gave the command HBACK, made some changes to the original dataset, now i dont want these changes and i want to get my original version. How do i get that version again? Can you please help.
Also please explain how is HBACK different from 3.3 copy?
Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
To know the number of backup versions retained by HSM you must speak to your storage people, as this is site specific information.
If the limit is one, then you can not do what you want to do, and should maybe look at DFdss as a backup vehicle. |
|
Back to top |
|
|
|