View previous topic :: View next topic |
Author |
Message |
ayush Beginner
Joined: 26 Feb 2004 Posts: 20 Topics: 14
|
Posted: Fri Jul 01, 2005 2:34 pm Post subject: S0C4 after GOBACK |
|
|
Hi,
I am getting S0C4 abend for my batch program.
This contains a GO BACK statement like below
-- Main Para ----
PERFORM 9000-END-OF-JOB THROUGH 9000-EXIT.
STOP RUN.
***9000- para *********
CLOSE AS-FILE .
FINISH.
PERFORM IDMS-STATUS.
GOBACK.
9000-EXIT.
*******************************************
The code goes up to just before GOBACK ( i tested using displays). And then its giving SOC4.
This job was running in prod for last 3 years and all of a sudden today it is abending.
Anyone can please let me know why it may happen?
Thanks
Ayush |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
Posted: Mon Jul 04, 2005 9:18 pm Post subject: |
|
|
Ayush,
Add the following line as the first line in your pgm (before ID division)
Now recompile the program and re-run the job. Hopefully that should solve the abend.
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
ayush Beginner
Joined: 26 Feb 2004 Posts: 20 Topics: 14
|
Posted: Mon Jul 25, 2005 2:22 pm Post subject: |
|
|
Hi Kolusu,
I used this advice from you in my compiler settings.
in our shop the compiler options are default to NOSSR, which when we changed to SSR and recompiled the job, while job execution it failed at the correct place where there was data overflow, and not at the end and hence I could catch the error.
Thanks for the advice, and sorry for the late reply, as I logged on after a long time.
Cheers.
Ayush |
|
Back to top |
|
|
|
|