MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

S0C4 after GOBACK

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ayush
Beginner


Joined: 26 Feb 2004
Posts: 20
Topics: 14

PostPosted: Fri Jul 01, 2005 2:34 pm    Post subject: S0C4 after GOBACK Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Mon Jul 04, 2005 9:18 pm    Post subject: Reply with quote

Ayush,

Add the following line as the first line in your pgm (before ID division)


Code:

CBL SSRANGE


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
View user's profile Send private message Send e-mail Visit poster's website
ayush
Beginner


Joined: 26 Feb 2004
Posts: 20
Topics: 14

PostPosted: Mon Jul 25, 2005 2:22 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group