Hi,
Scenario:
A job is executed that creates a GSAM GDG version xxxxxx.output(+1), but it gets Abend while reading, say, 5th record of input GSAM file(PS file).
When restarting the job again from the Abended step, UCC11RMS fails to recognise the output GDG version created.(i.e) the latest version of the GDG, say, Gxxx3V00.
It gives Abend U0020, with error message
CMT ENTRY INVALID.
GDG verification failed for DDname.
But if the output file is a PS file(non-GDG), the job restarts correctly from the 5th record of input, creating corresponding output records in the same output file(used before restart).
Please get me answer to the error message I get.
Note: Harcoding the version, i.e, Gxxx3V00 instead of giving (+1) while restarting also works.
Thanks,
BanuPriyaB
Abend U0020 during checkpoint restart in JCL - step UCC11RMS
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 16
- Joined: Fri Apr 17, 2009 5:10 pm
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
This is actually an annoying quirk of UCC11RMS, which is part of CA-11, the rerun/restart package.
If a file has DISP=(NEW,CATLG,DELETE) and file already exists - it gives you an error in JCL-Syntax-check. However, if you code UCC11RMS (and it has to be the very first step of your Job) such syntax error won't come. But the disadvantage comes when you restart - suggest if you restart, comment out the UCC11RMS step and it should restart well.
PS. What you have mentioned in your post is "generation" and not "version".
If a file has DISP=(NEW,CATLG,DELETE) and file already exists - it gives you an error in JCL-Syntax-check. However, if you code UCC11RMS (and it has to be the very first step of your Job) such syntax error won't come. But the disadvantage comes when you restart - suggest if you restart, comment out the UCC11RMS step and it should restart well.
PS. What you have mentioned in your post is "generation" and not "version".
Regards,
Anuj
Anuj
-
- Member
- Posts: 1
- Joined: Mon Oct 01, 2012 11:08 pm
UCC11RMS is a PROC that takes care of deleting the dataset that are to be created within the JOB.
If need to restart the job from certain step then use e,g.TYPRUN='R,JSSTEP03.PSSTEP05' so that first UCC11RMS will be executed and then job will be restarted from this step after deleting and recreating any dataset that are present after this step. Previously defined datasets will be intact. Often gives U020 if not used correctly or missing entry for that step in previous run of that job.
If need to restart the job from certain step then use e,g.TYPRUN='R,JSSTEP03.PSSTEP05' so that first UCC11RMS will be executed and then job will be restarted from this step after deleting and recreating any dataset that are present after this step. Previously defined datasets will be intact. Often gives U020 if not used correctly or missing entry for that step in previous run of that job.
MainFrame is Easy !!
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
use &GEN and set it to +1 or +0 depending on normal run or restart...
that will get you around the problem that you have created.
something in the restart JCL, the original JCL was not done according to the book.
IBM would not implement a service such as RESTART
without taking into consideration how to handle gdg's. (and there would be examples
or
there is a disclaimer in the manuals describing how to design your system
not to use gdg's.
personally I would not bother searching for a disclaimer.
that will get you around the problem that you have created.
something in the restart JCL, the original JCL was not done according to the book.
IBM would not implement a service such as RESTART
without taking into consideration how to handle gdg's. (and there would be examples
or
there is a disclaimer in the manuals describing how to design your system
not to use gdg's.
personally I would not bother searching for a disclaimer.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page