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

REXX program to migrate large datasets under a volume


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Mon Jun 11, 2007 12:34 am
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
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: 8797
Location: Welsh Wales

PostPosted: Mon Jun 11, 2007 8:02 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top