I found trouble in incrementing the sequence number which is being appended in the file name.
For first run the file name is AEBCQ01P.001 in JCL,but it should be as AEBCQ01P.002 for the 2nd run. This file name is specified in SYSIN card itself.
Joined: 06 Jun 2008 Posts: 8195 Location: East Dubuque, Illinois, USA
1. AEBCQ01P.001 is not a valid file name in JCL -- every level must start with a letter or symbol, not a number.
2. What you want to do cannot be done through pure JCL -- you will need to write a program to submit your JCL to the internal reasder with the correct sequence number in the correct spot.
3. Why not just use a GDG which is already part of the system rather than reinvent the wheel?