Abend U0020 during checkpoint restart in JCL - step UCC11RMS

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Posts: 16
Joined: Fri Apr 17, 2009 5:10 pm

Abend U0020 during checkpoint restart in JCL - step UCC11RMS

Post by banupriyab » Wed Sep 15, 2010 10:38 am

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
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.


Anuj Dhawan
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Sep 15, 2010 2:59 pm

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".

Posts: 1
Joined: Mon Oct 01, 2012 11:08 pm

Post by DeltaForce » Mon Oct 01, 2012 11:54 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.
MainFrame is Easy !!

User avatar
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Tue Oct 02, 2012 3:32 am

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
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.

Post Reply


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.
Mainframe Interview questions

Other References
Mainframe Tools and others