Thank you for the suggestion, I will search the forums more for the sampels

Marso,

The one I had given was just an example (as quoted) - the actual content is different. But the final thing to achieve is to replace one line by five lines!! However thank you for the suggestion, I would remember this while replacing any SET statements in future!!!

Does your shop have Jobscan installed? It's what runs if you enter "JEM" to check your JCL.

It has a really nice batch JCL editor built in that can do EXACTLY what you're looking for.

The same is true of JCLPREP. Beware, however; the control language for JPEDMCR (the JCLPREP batch editor) is a programming language in itself, and not to be mastered by asking a few questions in a forum such as this. I haven't been at a shop that used JOBSCAN in nearly a decade, and do not recall if the same is true of it or not.