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
 

 

REXX program to migrate large datasets under a volume

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
maheshk84

New User


Joined: 04 Jan 2006
Posts: 22
Location: Chennai

PostPosted: Sun Jun 10, 2007 10:20 pm    Post subject: REXX program to migrate large datasets under a volume
Reply with quote

Hi,

I need a REXX program to find datasets greater than 500 trks under a particular volume and then migrate these datasets.

I have a VTOC command to find datasets occupying 500+ trks which is coded below

TSO VTOC APD009 LIM(ALLOC GT 500) where APD009 is the volume name.
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: Mon Jun 11, 2007 12:34 am    Post subject:
Reply with quote

If the VTOC utility runs from your ISPF session, then you should be able to access the output and generate the required MIGRATE commands.
Back to top
View user's profile Send private message
maheshk84

New User


Joined: 04 Jan 2006
Posts: 22
Location: Chennai

PostPosted: Mon Jun 11, 2007 4:28 pm    Post subject:
Reply with quote

Thanks for the reply.

I can get the name of the datasets to be migrated but want to know how to migrate datasets using rexx.
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: Mon Jun 11, 2007 8:02 pm    Post subject:
Reply with quote

Issue the HMIG command through REXX

" HMIG '"dataset"'"
Back to top
View user's profile Send private message
maheshk84

New User


Joined: 04 Jan 2006
Posts: 22
Location: Chennai

PostPosted: Tue Jun 12, 2007 1:33 pm    Post subject:
Reply with quote

Thanks a lot.

There are many topics related to HMIGRATE in this forum itself which I did not check. Its my fault.

QW HMIGRATE gives the parameters that can be specified for HMIGRATE command.

My requirement done. Thanks once again for your swift reply.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts RMM: scratching a volume that RMM thi... Hervey Martinez IBM Tools 0 Mon May 15, 2017 8:51 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am


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