Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL -- Need jcl for mass updates

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
gschandu13

New User


Joined: 07 Jun 2005
Posts: 6

PostPosted: Wed Jul 14, 2010 2:37 pm    Post subject: JCL -- Need jcl for mass updates
Reply with quote

Hi,

Could someone please help me in getting the requirement done.

The requirement is below.

I have PDS "TSO.CCCSEK.CARDLIB". In this PDS there are 100 members. Some of the member contain the word "PROD". I need a jcl that will replace "PROD" with "TEST" in the members, which contain this word "PROD".

Thanks,
Chandu.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 14, 2010 2:57 pm    Post subject:
Reply with quote

There is a search button at the top of each and every page. Please, it is free to use.

Search for ISPF edit macro and you will find examples of what you need to do.
Back to top
View user's profile Send private message
gschandu13

New User


Joined: 07 Jun 2005
Posts: 6

PostPosted: Wed Jul 14, 2010 3:01 pm    Post subject:
Reply with quote

Thank you for quick response. I know that. But I was looking for any jcl which will help me getting my requirement done.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 14, 2010 3:05 pm    Post subject:
Reply with quote

Have you considered that I did actually understand your original request. I do know what you meant by "I want a JCL to ..................."

Have you considered that perhaps, just perhaps, that the edit macro solution would work in batch (or "in a JCL" for those who know no different).
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 14, 2010 3:18 pm    Post subject:
Reply with quote

Here is another example of someone wanting a solution,
and having no idea what the solution is, how it would work, or how to implement the solution.

Have you investigated the utilities (especially 3rd party tools)
available at your shop?

I doubt that you could support the edit macro approach,
while very easy to an experienced programmer,
and only as a topic in this forum about 3 times a week for the last
couple of years,
your not bothering to search for nearly identical topics,
indicates you have very basic skills.

suggest you search this forum,
suggest you look at what is available at your site.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Wed Jul 14, 2010 3:26 pm    Post subject:
Reply with quote

File-Aid can also do tsis, among other options; do you've File-Aid available at your shop?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Jul 14, 2010 4:34 pm    Post subject: Reply to: JCL -- Ned jcl for mass updates
Reply with quote

Maybe IPOUPDTE will work for your situation?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jul 14, 2010 8:17 pm    Post subject:
Reply with quote

Hello,

In addition to determining how you want to implement you will probably want to look for something other than just PROD. . . What if PRODUCT is in the member?

If your environment is like several i've worked on you might be able to use .PROD. or something similar. . .
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Jul 14, 2010 9:05 pm    Post subject: Reply to: JCL -- Need jcl for mass updates
Reply with quote

Another possibility that's been discusses before is to use IEBPTPCH to copy the PDS to a sequential dataset, make the required changes using SORT, and then re-build the PDS using IEBUPDTE.
Back to top
View user's profile Send private message
gschandu13

New User


Joined: 07 Jun 2005
Posts: 6

PostPosted: Thu Jul 15, 2010 11:39 am    Post subject: JCL -- Ned jcl for mass updates
Reply with quote

I came to know that it is possible with REXX as there are many word like PROD, "(DSN)" and many more that need to changes in all the members that contain. So going my FIle-AId, SRCHFOR command will take lot of time to make changes. That the reason I have asked for help.

Thanks,
Chandu.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 15, 2010 11:43 am    Post subject:
Reply with quote

And that is why we are willing to help you.

All we ask is that you describe your problem what you have tried for yourself and where you are encountering problems.

You have had some good suggestions, and I still believe that one of the easiest ways is using ISPF or File-Aid. File-Aid should not take more than a few minutes to perform this on 100 members, and nor should an ISPF edit macro.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 15, 2010 11:48 am    Post subject:
Reply with quote

Click HERE to see an example of a basic REXX / ISPF edit macro to do almost what you want to do.

Read it, try to understand it and come back if you get problems, and yes, you probably will do. Another topic to help you would to be to search for ISPF batch (or JCL).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts VSAM multiple updates spoorni JCL & VSAM 2 Wed Dec 30, 2015 10:38 pm
No new posts Mass rename of PDS members prino CLIST & REXX 13 Fri May 30, 2014 6:10 pm
No new posts Mass copy of a pds Akatsukami JCL & VSAM 11 Tue Mar 12, 2013 8:01 pm
No new posts Sometimes Panel updates doesn't reflect Stefan TSO/ISPF 12 Wed Sep 05, 2012 11:42 am
No new posts MASS Dataset Rename manoz_k JCL & VSAM 3 Wed Oct 19, 2011 8:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us