by Robert Sample » Wed Oct 31, 2012 11:41 pm
JCL is not a programming language. JCL does not support loops. JCL supports only VERY LIMITED conditional logic.
In other words, what you want to do cannot be done, period.
Topic locked as this is the second time in the past few days people are asking to use loops in JCL. It cannot be done, period.