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 

SOC4 with reason code 11

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


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Mon Jun 01, 2009 9:28 am    Post subject: SOC4 with reason code 11 Reply with quote

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


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

PostPosted: Mon Jun 01, 2009 11:01 am    Post subject: Reply with quote

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


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Mon Jun 01, 2009 11:27 am    Post subject: Reply with quote

Sorry for not specifying that it is in cobol
_________________
IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE.
Back to top
View user's profile Send private message Yahoo Messenger
kingo
Intermediate


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Mon Jun 01, 2009 11:32 am    Post subject: Reply with quote

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


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

PostPosted: Mon Jun 01, 2009 11:52 am    Post subject: Reply with quote

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


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Mon Jun 01, 2009 11:59 am    Post subject: Reply with quote

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


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

PostPosted: Mon Jun 01, 2009 12:07 pm    Post subject: Reply with quote

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


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Mon Jun 01, 2009 12:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
kingo
Intermediate


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Tue Jun 02, 2009 4:11 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Wed Jul 01, 2009 6:14 am    Post subject: Reply with quote

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