Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Backup datasets using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
rarvins

New User


Joined: 24 Jan 2007
Posts: 42
Location: India

PostPosted: Wed Jul 09, 2008 9:47 pm    Post subject: Backup datasets using REXX
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
References
PostPosted: Wed Jul 09, 2008 9:47 pm    Post subject: Re: Backup datasets using REXX Reply with quote

Pedro

Active User


Joined: 01 Sep 2006
Posts: 274
Location: work

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: 2538
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: 42
Location: India

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

Active User


Joined: 01 Sep 2006
Posts: 274
Location: work

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

Active User


Joined: 01 Sep 2006
Posts: 274
Location: work

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1