View previous topic :: View next topic
|
Author |
Message |
Shiva Rama Krishna Pittal
New User
Joined: 20 Nov 2020 Posts: 1 Location: India
|
|
|
|
Hi Everyone,
I need a JCL to replace a part of my code in cobol with other code. To be precise , in my cobol code there are
statements.
I have to replace them with:
Code: |
**CHANGES START
**++INCLUDE xyz
COPY xyz.
**CHANGES END |
Please help me in writing a JCL. Thanks in advance. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
One way of doing this is to use your site's SORT utility.
(but, of source, that's a different part of the forum - not JCL)
Garry. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1348 Location: Bamberg, Germany
|
|
|
|
FMNZ could be another approach for this. Let us know your precise FROM/TO, using code tags. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3077 Location: NYC,USA
|
|
|
|
Welcome!
REXX could do this other than DFSORT . Do some research please and you would certainly get some ideas to start with. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1348 Location: Bamberg, Germany
|
|
|
|
If it is a single line only to be replaced by multiple ones, I think what Garry has suggested will work best. Unload the Members to a PS and do the change, reload when done. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2154 Location: USA
|
|
|
|
I would say, the JCL is the only tool out of hundreds other tools which CANNOT do this task... |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Looking at the ++INCLUDE xyz statement I think the TS is talking about a Panvalet proprietary dataset. And that is not an IBM PDS. So processing the members to change the ++INCLUDE statements wil acquire using Panvalet utilities to extract the data to apply the changes. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
. not to mention the challenge around the naming of members - Panvalet allows 10-character member names.....
(had the pain of that conversion some years ago )
Garry |
|
Back to top |
|
|
|