Changing strings in members by a batch job

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
mehdi_shri
Member
Posts: 8
Joined: Sat Jun 09, 2012 2:48 pm
Location: Iran

Changing strings in members by a batch job

Post by mehdi_shri » Sat Jun 09, 2012 2:57 pm

Hi freinds
I want to change an string in a series of JCL's. For example change
"DSN=IMS.PRJ01.OLP01" to "DUMMY"
Cause of many JCL's must be have "DUMMY" instead of "DSN=IMS.PRJ01.OLP01", it's difficult and time consuming to do this changes one by ony in JCL source. Is there a utility to do this by a batch job? And what is this form and syntax?

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Sat Jun 09, 2012 7:26 pm

I'm not sure how to answer this since you posted your question to the TSO, CLIST, and REXX forum.

For quick batch updates of a PDS I usually try the IPOUPDTE utility first. If that won't work, you can try using IEBPTPCH to copy the PDS to a sequential dataset, make the changes to that dataset, then use IEBUPDTE to re-build the data into a PDS again.

In relation to this forum, a simple CLIST or REXX exec using a TSO EDIT would work nice. Or, if you like, you can always write an application using ISPF Services to edit each member and apply an ISPF Edit Macro for the changes.

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Sat Jun 09, 2012 8:00 pm

If you continue to multi-post the same question on different forums, many of them will be deleted. . .

d

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others