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

JCL -- Need jcl for mass updates


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Jul 14, 2010 2:57 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Jul 14, 2010 3:05 pm
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
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

Superior Member


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

PostPosted: Wed Jul 14, 2010 3:26 pm
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

Global Moderator


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

PostPosted: Wed Jul 14, 2010 4:34 pm
Reply with quote

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

Moderator Emeritus


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

PostPosted: Wed Jul 14, 2010 8:17 pm
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

Global Moderator


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

PostPosted: Wed Jul 14, 2010 9:05 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Jul 15, 2010 11:43 am
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: 8797
Location: Welsh Wales

PostPosted: Thu Jul 15, 2010 11:48 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Mass JCL release via IDZ tool(eclipse... CA Products 1
No new posts volume mass delete RMM JCL & VSAM 2
No new posts Positioned Deletes/Updates using curs... DB2 3
No new posts IAM updates are not commiting randomly JCL & VSAM 2
No new posts how are mainframe (z/OS) updates inst... All Other Mainframe Topics 5
Search our Forums:

Back to Top