I'm trying to do the following.
1. Copy the JCL from one PDS to other PDS.
2. Skip/delete the below lines when you copy over.
// DD DSN=TEST.DHL.RR46916,
// DD DSN=TEST.DHL.RR46919,
// DD DSN=TEST.DHL.RR46927,
// DD DSN=TEST.DHL.RR46928,
3. Replace the last two digits of the first DSN in the SORTIN DD of STEP10, using a symbolic parameter.
Letz say the symbolic parameter has a value 18.
//SORTIN DD DSN=TEST.DHL.RR46903,
//SORTIN DD DSN=TEST.DHL.RR46918,
Thanks for looking into it. Yes, its always those lines(Unless there is a change in the JCL, which i hope wont be too often. )
I was thinking about doing that in two steps. Copy line 1 to 5 to a temp dataset 1 and line 14 to end to a temp dataset 2 and then concatenate both.
But i was looking for achieving it in single step. (I have to copy 50 similar JCLs. So if one takes 2 steps, then i have to code 100 steps for copying 50 JCLs. So tryinng to see if i could do that in one step.)