Page 1 of 1

Getting U0102 Abend in IMS while testing the restart.

Posted: Tue Jan 13, 2015 4:39 pm
by Rekha Rane
Hi all,

I've written a new COBOL-IMS program and I am testing the check poinst restart for this program. I have to force abend the program after XRST call and then the program should run fine after restart. But in restart, am facing U0102 abend while issuing XRST call. Please sahre your suggestions to avoid this.

Re: Getting U0102 Abend in IMS while testing the restart.

Posted: Sat Jan 17, 2015 7:36 pm
by Anuj Dhawan
U0102 is a positioning error. That is restart is not able to re-position the control to restart point. Said that, are you using a GSAM file to restart which is created in the very first step of your unit test JCL?

Re: Getting U0102 Abend in IMS while testing the restart.

Posted: Sun Jan 18, 2015 9:03 pm
by Rekha Rane
Yes, the first step is IEFBR14 step which creates the GSAM file used in the JCL later?

Re: Getting U0102 Abend in IMS while testing the restart.

Posted: Mon Jan 19, 2015 9:55 am
by Anuj Dhawan
With an educated guess - suggest - at the time of restart remove or comment out the IEFBR14 step and it SUBmit the Job, should work for you. However, if you'd show your JCL, I might be sure enough.

Usually, in checkpoint restart GSAMs are used as the "check-point restart database" to tell the system where to start, when it's a restart. Program will read the GSAM to re-position IMS - however, when you start the Job from top again (restart), program 'knows' it's a restart from the restart I-O area, as the flag must have been set for a restart - but re-allocation of GSAM makes it a brand new file. There is nothing to re-position to for IMS, once it read the newly allocated GSAM and so you get U0102.

This is not a very technical explanation, but not every explanation can be technical - but nonetheless, I think it helps you.

Re: Getting U0102 Abend in IMS while testing the restart.

Posted: Mon Jan 19, 2015 10:57 pm
by Rekha Rane
This has worked, thanks for your help and explanation Anuj!

Re: Getting U0102 Abend in IMS while testing the restart.

Posted: Tue Jan 20, 2015 8:42 am
by Anuj Dhawan
Glad that it has worked for you.