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 abend while reading

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Problem Determination
View previous topic :: View next topic  
Author Message
bade_miya
Beginner


Joined: 10 Dec 2003
Posts: 110
Topics: 38

PostPosted: Sat Apr 29, 2006 6:28 am    Post subject: S0C4 abend while reading Reply with quote

Hi All,
I am trying to process some 2 million records. My program is giving S0C4 abend while reading some records. for example, for the first 100 records or so its working fine. Then it will give abend on the next record. When i remove the 101th(These are not exact figures, just quoted as an example) record, its again working fine, say for some 1000 records and again giving the same problem. If it was a data problem it should be giving S0C7 right? Can any one give me a clue on why this is happening.
Please not that its not happning in a regular intrevel of records.
I have searched the forum, but didnt get any helful topics. I saw one similar topic, but in that the problem was caused because the subroutine file was not declared external. In my case there is no subroutine, just one single program. Please let me know in case you need more details.

Thanks & Regards
bade_miya.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Sat Apr 29, 2006 10:53 am    Post subject: Reply with quote

bade_miya,


Make sure that you don't have a table over flow.

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


Joined: 09 May 2006
Posts: 5
Topics: 0

PostPosted: Tue Jul 04, 2006 6:30 am    Post subject: Reply with quote

I want to add more info. on the above abend

When dealing more volumes of data, the program will try to write into the memory which already filled by data. Then it will give SOC4(data protection error)
Because once the data filled in the particular area in memory, it won't allow to write again in that place till that program completes. When try to write other data in that place, it is giving error like already data is there and it is protected.

If you are using table, it will give this error. For correcting that one, we need to increase or decrease the occurs clause and run the job.
Back to top
View user's profile Send private message
hemakumarl
Beginner


Joined: 19 Feb 2004
Posts: 7
Topics: 3

PostPosted: Sat Nov 25, 2006 4:44 am    Post subject: help Reply with quote

Hello,

I am also facing the same problem as mentioned ablove while sorting and merging the files with imput/output procedure options. RELEASE command also been used. I would like to know the solution for this problem. Could somone help me in this please...

Regards
Hemakumar
_________________
Hemakumar L.
Back to top
View user's profile Send private message Yahoo Messenger
shagnwrx
Beginner


Joined: 06 Jul 2006
Posts: 14
Topics: 0
Location: Birmingham, AL

PostPosted: Mon Nov 27, 2006 10:49 am    Post subject: Reply with quote

Try using SSRANGE on your program. That should help to identify the overflow.
_________________
SCCA South East Division RallyCross
Back to top
View user's profile Send private message AIM Address
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Thu Jun 14, 2007 11:11 am    Post subject: Reply with quote

what is the reason code you are getting along with S0c4?
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Jun 14, 2007 11:55 am    Post subject: Reply with quote

vak255,

Quote:

what is the reason code you are getting along with S0c4?


Whom are you referring to ??? OP never bothered to reply for more than a year.. Do you think he will remember the reason code ?

Thanks,
Phantom
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 -> Problem Determination 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