View previous topic :: View next topic
|
Author |
Message |
Sheerin banu
New User
Joined: 10 Apr 2013 Posts: 10 Location: INDIA
|
|
|
|
Hi All,
I am new to Rexx and my requirement is to read all members(all are jcls) of pds and edit it , eg: changing its job card and deleting commented lines in that member and write it to a new pds .
Please help me with the code to achieve this. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
Please help me with the code to achieve this. |
what is the meaning of the help verb ?
( provide me with -, perchance )
anyway, see here for an example on how to extract the list of all the member of a pds
ibmmainframes.com/viewtopic.php?t=60743&highlight=
and here on how to apply an edit macro to all of them
ibmmainframes.com/viewtopic.php?t=25947&highlight=
the components involved are two ...
the main driver which processes/extracts the member list
the EDIT macro which modifies each member
once You have understood the logic You will be ready for the next step
write Yourself the EDIT macro to modify the JCL card and get rid of the comment
anyway the task is IMO too complicated for a REXX beginner |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
There are of course 3rd party products available which will do exactly what you want to achieve.
Why re-invent the wheel is this is a business requirement? |
|
Back to top |
|
|
Sheerin banu
New User
Joined: 10 Apr 2013 Posts: 10 Location: INDIA
|
|
|
|
Thanks both of you for your valuable response. |
|
Back to top |
|
|
|