View previous topic :: View next topic
|
Author |
Message |
chandrakanta
New User
Joined: 28 Nov 2011 Posts: 11 Location: india
|
|
|
|
Hi,
I want to change a perticular field in all jcls ,how can i acheive this.(any short cut) |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
There are couple of ways of doing it:
1. Use File-Aid, if you have it at your shop.
2. Use REXX "macro" to iterate through all the members of PDS of interest.
3. Possibly use IPOUPDTE.
4. If Sort is your option, keep in mind - SORT is NOT really the tool of choice for updating PDS members en masse. You need to devise a logic to use it in one of the steps. Somthing like this should work:a. Use IEBPTPCH to "punch" the selected members of the PDS into a sequential dataset.
b. Use SORT to reformat the IEBPTPCH output into a standard IEBUPDTE-ready format.
c. Edit the data to enable your changes.
d. Use IEBUPDTE to create a PDS from the edited dataset. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Analyse the changes, all options of continuation etc, plan the code, test it and see
Perhaps if you would find fit to actually tell us what needs changing it may help |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
it depends on the complexity of the jcl, the field to be changed, and Your skill |
|
Back to top |
|
|
chandrakanta
New User
Joined: 28 Nov 2011 Posts: 11 Location: india
|
|
|
|
Dear All,
Thanks for all your suggestions.I have got it by using file- aid search/update function.(3.6)
Thanks again. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Good to hear that you got it working! |
|
Back to top |
|
|
|