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 

OC4 - Reason 11 - at Program Termination

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


Joined: 05 Oct 2006
Posts: 1
Topics: 1

PostPosted: Thu Oct 05, 2006 2:30 pm    Post subject: OC4 - Reason 11 - at Program Termination Reply with quote

I am receiving an OC4, reason 11 at program termination - the active load module name is IGZCPCO. I have displays in the application that show that I have finished all application processing. I believe it is running in an LE/370 runtime environment - it's Cobol/DB2 and has a dynamic call.
Any ideas?
Thanks
Newbie
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Oct 05, 2006 5:09 pm    Post subject: Reply with quote

radair,

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
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Mon Oct 16, 2006 11:41 am    Post subject: Reply with quote

Kolusu,

How did you find out it was an array overflow?

The manual says this ...

Quote:

11
Page-translation exception. This error is caused by one of the following:

A program that was running disabled attempted to reference storage while that storage was paged out. To correct the error, page-fix the storage before a program running disabled attempts to reference it.

A program attempted to reference storage that had not been obtained. To correct the error, allocate the storage before attempting to reference it.

A program running in a subspace attempted to reference storage that was not accessible to the subspace at the time of error. To correct the error, ensure that the program running in a subspace references only the storage assigned to that subspace, or storage that can be referenced by all subspaces.

SMS abend. The reason code is X'12C'.

________
iolite reviews


Last edited by coolman on Sat Feb 05, 2011 1:53 am; edited 1 time in total
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Wed Oct 18, 2006 2:35 pm    Post subject: Reply with quote

Kolusu,

Can you please let us know. Thanks.
________
head shop


Last edited by coolman on Sat Feb 05, 2011 1:55 am; edited 1 time in total
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Oct 18, 2006 2:53 pm    Post subject: Reply with quote

Coolman,

It is a known error. A pgm compiled with NOSSRANGE will have this problem. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=4417&highlight=ssrange

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Wed Oct 18, 2006 4:38 pm    Post subject: Reply with quote

True - I agree that NOSSR is a known problem - But as you might know, there might be other problems too. I was wondering how your directly zeroed in on this one w/o getting any details.

Maybe, the below line helped you reach the conclusion

Quote:

I have displays in the application that show that I have finished all application processing

________
white widow seeds


Last edited by coolman on Sat Feb 05, 2011 1:55 am; edited 1 time in total
Back to top
View user's profile Send private message
dtf
Beginner


Joined: 10 Dec 2004
Posts: 110
Topics: 8
Location: Colorado USA

PostPosted: Thu Oct 19, 2006 12:06 pm    Post subject: Reply with quote

In my opinion, this is an educated guess, and as such a good thing to try. It is quite possible that there is another issue causing your S0C4 abend. Perhaps though, from the information you provided, Kolusa was able to research the problem, and provide the correct answer.

The fact that the you appear to have run all the way through your program and are abending on termination, is a clue that an address needed to properly shut the program down has been destroyed. This could be in the chain called the SAVE AREA, or perhaps in some file area.

A subscript out of bounds can cause various types of abends, and even worse, and be intermitant. It is quite possible that you could have a progam get a S0C4 on one run, a S0C7 on another run, and appear to run clean on yet another run.

This is because a subscript/index out of bounds leads to data and or program instructions being overlaid. If the data overlaid is an address, that is later used, this could cause a S0C4, or if you run way out of bounds on a table so much so that you run into storage that is not yours, you could get a S0C4. If you overlay numeric data and then reference it, you could get a S0C7. If you whack instructions and then try to execute them, you could get a S0C1, or another abend that I can't remeber right now, where the system things you are trying to execute a privialged instruction.
________
Suzuki MR Wagon history
Back to top
View user's profile Send private message
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