Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Backup datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Backup datasets
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

Senior Member


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

PostPosted: Wed Jul 09, 2008 9:59 pm    Post subject: Reply to: Backup datasets using REXX
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Jul 09, 2008 10:22 pm    Post subject: Reply to: Backup datasets using REXX
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    Post subject: Reply to: Backup datasets using REXX
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

Senior Member


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

PostPosted: Sun Jul 13, 2008 7:02 am    Post subject: Reply to: Backup datasets using REXX
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

Senior Member


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

PostPosted: Sun Jul 13, 2008 7:14 am    Post subject: Reply to: Backup datasets using REXX
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: 114
Location: Hyderabad

PostPosted: Tue Jan 06, 2009 11:03 am    Post subject: Reply to: Backup datasets using REXX
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jan 06, 2009 12:30 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts IMS Database backup info ashek15 IMS DB/DC 14 Wed Nov 16, 2016 5:29 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Finding unreferenced datasets without... Alan Playford JCL & VSAM 5 Tue Jul 12, 2016 9:07 pm
No new posts BDW in VB datasets harisukumaran JCL & VSAM 5 Sat May 28, 2016 9:46 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us