View previous topic :: View next topic |
Author |
Message |
kingo Intermediate
Joined: 01 Sep 2006 Posts: 167 Topics: 40 Location: chennai
|
Posted: Mon Jun 01, 2009 9:28 am Post subject: SOC4 with reason code 11 |
|
|
Hi,
I am getting S0C4 with reason code 11 when I am trying to open the file.
I tried to open the dataset to check in a crude way if it opens and it was fine.
Can anyone please suggest what could be the problem?
Thanks in advance.
Kingo _________________ IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon Jun 01, 2009 11:01 am Post subject: |
|
|
kingo,
1. What language are you using?
2. Is it sub routine
Last but not least AFAIK S0C4 reason code 11 will not occur on a open file no matter what the language is.
Kolusu |
|
Back to top |
|
|
kingo Intermediate
Joined: 01 Sep 2006 Posts: 167 Topics: 40 Location: chennai
|
Posted: Mon Jun 01, 2009 11:27 am Post subject: |
|
|
Sorry for not specifying that it is in cobol _________________ IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE. |
|
Back to top |
|
|
kingo Intermediate
Joined: 01 Sep 2006 Posts: 167 Topics: 40 Location: chennai
|
Posted: Mon Jun 01, 2009 11:32 am Post subject: |
|
|
kingo wrote: | Sorry for not specifying that it is in cobol |
1.Language -> COBOL
2.sub routine -> NO _________________ IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon Jun 01, 2009 11:52 am Post subject: |
|
|
kingo,
Try running the program with REGION=0M in the JCL and also check if there is an overflow of any internal table
Kolusu |
|
Back to top |
|
|
kingo Intermediate
Joined: 01 Sep 2006 Posts: 167 Topics: 40 Location: chennai
|
Posted: Mon Jun 01, 2009 11:59 am Post subject: |
|
|
kolusu wrote: | kingo,
Try running the program with REGION=0M in the JCL and also check if there is an overflow of any internal table
Kolusu | Hi Kolusu,
Can you please tell me why you said check if there is an overflow of any internal table and how is this related to this issue?
Kingo _________________ IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon Jun 01, 2009 12:07 pm Post subject: |
|
|
kingo,
Reason code of 11 for 0C4 means that "a program attempted to reference storage that had not been obtained". If you had an overflow or you are trying to access the area with subscript out of range , you might end up with the error. If you do have internal tables , I suggest that you search the application programming forum for "ssrange" and you can narrow it down.
Kolusu |
|
Back to top |
|
|
kingo Intermediate
Joined: 01 Sep 2006 Posts: 167 Topics: 40 Location: chennai
|
Posted: Mon Jun 01, 2009 12:13 pm Post subject: |
|
|
Thanks Kolusu.I got the problem now.
So whenever we are getting reason code 11 is it due to out of bound and is SSRANGE always handy? _________________ IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE. |
|
Back to top |
|
|
kingo Intermediate
Joined: 01 Sep 2006 Posts: 167 Topics: 40 Location: chennai
|
Posted: Tue Jun 02, 2009 4:11 am Post subject: |
|
|
Hi Kolusu,
I changed by giveing SSRANGE but still got the same error when I changed the program name and compiled and ran it it went fine.How is that possible?
Regards,
Kingo _________________ IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE. |
|
Back to top |
|
|
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Wed Jul 01, 2009 6:14 am Post subject: |
|
|
S0C4 reason code 11 from the System Codes manual: 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'. | SSrange, why do you do that? Could you be attempting to use the buffer before opening the file? _________________ Regards,
Anuj |
|
Back to top |
|
|
|
|