View previous topic :: View next topic
|
Author |
Message |
maheshk84
New User
Joined: 04 Jan 2006 Posts: 22 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
maheshk84
New User
Joined: 04 Jan 2006 Posts: 22 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Issue the HMIG command through REXX
" HMIG '"dataset"'" |
|
Back to top |
|
|
maheshk84
New User
Joined: 04 Jan 2006 Posts: 22 Location: Chennai
|
|
|
|
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 |
|
|
|