IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Backup datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rarvins

New User


Joined: 24 Jan 2007
Posts: 59
Location: Texas

PostPosted: Wed Jul 09, 2008 9:47 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Jul 09, 2008 9:59 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jul 09, 2008 10:22 pm
Reply with quote

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
View user's profile Send private message
rarvins

New User


Joined: 24 Jan 2007
Posts: 59
Location: Texas

PostPosted: Sun Jul 13, 2008 3:47 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Sun Jul 13, 2008 7:02 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Sun Jul 13, 2008 7:14 am
Reply with quote

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
View user's profile Send private message
kranthikumarb

Active User


Joined: 02 Jan 2009
Posts: 115
Location: Hyderabad

PostPosted: Tue Jan 06, 2009 11:03 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jan 06, 2009 12:30 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Data Backup suggestions DB2 5
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
No new posts how to get list of all VSAM/non-VSAM ... JCL & VSAM 13
No new posts define 1 DCB parms for multiple outpu... JCL & VSAM 9
Search our Forums:

Back to Top