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

Change perticular field


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chandrakanta

New User


Joined: 28 Nov 2011
Posts: 11
Location: india

PostPosted: Fri Aug 10, 2012 9:38 am
Reply with quote

Hi,
I want to change a perticular field in all jcls ,how can i acheive this.(any short cut)
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Aug 10, 2012 9:46 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Aug 11, 2012 1:43 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Sat Aug 11, 2012 3:07 pm
Reply with quote

Quote:
(any short cut)

it depends on the complexity of the jcl, the field to be changed, and Your skill icon_cool.gif
Back to top
View user's profile Send private message
chandrakanta

New User


Joined: 28 Nov 2011
Posts: 11
Location: india

PostPosted: Mon Aug 13, 2012 8:39 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Aug 13, 2012 3:34 pm
Reply with quote

Good to hear that you got it working!
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts SELECT from data change table DB2 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
Search our Forums:

Back to Top