View previous topic :: View next topic |
Author |
Message |
radair Beginner
Joined: 05 Oct 2006 Posts: 1 Topics: 1
|
Posted: Thu Oct 05, 2006 2:30 pm Post subject: OC4 - Reason 11 - at Program Termination |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Thu Oct 05, 2006 5:09 pm Post subject: |
|
|
radair,
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 |
|
|
coolman Intermediate
Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
|
Posted: Mon Oct 16, 2006 11:41 am Post subject: |
|
|
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 |
|
|
coolman Intermediate
Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
|
Posted: Wed Oct 18, 2006 2:35 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
coolman Intermediate
Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
|
Posted: Wed Oct 18, 2006 4:38 pm Post subject: |
|
|
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 |
|
|
dtf Beginner
Joined: 10 Dec 2004 Posts: 110 Topics: 8 Location: Colorado USA
|
Posted: Thu Oct 19, 2006 12:06 pm Post subject: |
|
|
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 |
|
|
|
|