View previous topic :: View next topic
|
Author |
Message |
nelson.pandian
Active User
Joined: 09 Apr 2008 Posts: 133 Location: Phoenix, AZ
|
|
|
|
Hi,
I want to copy the list of PDS displayed in the 3.4 option into a PS. So that i can use that PS as an input to a JCL to delete those PDS.
For example,
If i enter HLQ.*.*, a list of PDS will be displayed which i want to copy in a PS. Since there are thousands of PDS displayed, it takes lot of time to copy manually. Is it possible using REXX??
Please help. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Take a look at THIS thread for an example. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Nelson,
Quote: |
If i enter HLQ.*.*, a list f PDS will be displayed which i want to copy in a PS. Since there are thousands of PDS displayed, it takes lot of time to copy manually. Is it possible using REXX?? |
Yes, its possible in REXX using the OUTTRAP command. Search this forum for examples.
1) Execute the command in REXX and not in 3.4
2) Trap the output from the screen
3) Queue and write it into a PS
4) Use the PS for further processing. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hi,
Go to 3.4 type your naming convention. Press ENTER
in the command type -> SAVE LIST
the list will be saved under following naming 'yourid.list.datasets'
Thank You,
Sushanth Bobby |
|
Back to top |
|
|
nelson.pandian
Active User
Joined: 09 Apr 2008 Posts: 133 Location: Phoenix, AZ
|
|
|
|
Thanks for your help guys. I got it using Sushanth's idea:) |
|
Back to top |
|
|
|