Page 1 of 1

Changing strings in members by a batch job.

PostPosted: Sat Jun 09, 2012 1:34 pm
by Mehdi shri
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?

Re: Changing strings in members by a batch job.

PostPosted: Sat Jun 09, 2012 1:42 pm
by prino

Re: Changing strings in members by a batch job.

PostPosted: Sat Jun 09, 2012 2:12 pm
by NicC
The problem with PDSUPDTE is that it is not IBM supplied. I can't connect to the website at the moment but I think it may be freeware and many plces would not allow this. I would search the IBM utilities manual to see what is there - mine is on a flash drive that is not on this system so cannot look - but try IEBUPDTE. Otherwise you can write a rexx/ispf job program and run that under IKJEFT01 or one of its sisters. (samples of what you would need can be found on this board.

Re: Changing strings in members by a batch job.

PostPosted: Sat Jun 09, 2012 7:44 pm
by MrSpock
IPOUPDTE maybe? Or maybe write a simple batch application using EDIT. Or, IEBPTPCH the PDS to a sequential dataset, apply the changes there, and then IEBUPDTE the data back into a PDS.