Hi dear friends,suppose there are 100 members in a JCL library.All the member's name start with ABC*.I need do following process,
(1)Change all the 100 members' name from ABC* to XYZ*.
(2)Change the JOBCARD name inside every member also from ABC* to XYZ*. For example,
Hi,
I am not much aware of any inbuilt utility on mainframes to do this.
Its quite possible that there will be some.
But, given this problem I would like to attack it in following manner.
Optimizations are really welcome.
1. write a COBOL program to update the JCL dataset . It should be easy if the JCLs require very structured changed ( much like you have asked for).
Note that JCL source code are written into sequential (ESDS) files having 80 bytes length FB.
2. Then write a JCL to run this program and providing DSNs for all your JCLs in seperate steps executing the same program ( as mentioned in point 1)
Here, you may like to write a COBOL program to write the JCL for point 2 using a COBOL program itself.
Its a bit complex solution but coudn't find any other.
if there are hundreds of JCLs in your JCL library and the changes to be made are structured and well defined one, then the above approach may be feasible.
Otherwise, manual changes is the last option.
As I said earlier, there may be better ways to do that.
further posts are welcome and curiously waited for.