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 

Regarding S0C7 Error

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


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Tue Jul 13, 2004 10:35 am    Post subject: Regarding S0C7 Error Reply with quote

Hi Folks,
It is known that S0C7 is due to data exception. But which type of data type create this S0C7? Is it only by COMP-3 fields? Then what could be the error when a program tries to do some arithmetic operation of invalid values in simple numeric fields/COMP type of fields?
Any help would be greatly appreciated.
Thanks a million
Jimmy
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: Tue Jul 13, 2004 10:43 am    Post subject: Reply with quote

Jimmy,

Possible causes for S0C7 abend include:


  • working storage not initialized
  • bad data, should check data for errors garbage in a field being tested or displayed 'move zeroes' to group level is display, had sublevels that were not
  • period missing after imperative statements within AT END clause
  • binary field in an arithmetic operation is not large enough to accept result



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


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Tue Jul 13, 2004 12:05 pm    Post subject: Reply with quote

Kolusu,
That is fine. But I am sorry, my question is 'What kind of data type causing S0C7?. Would it be only COMP-3 data type or all numeric data type which contain invallid data cause S0C7?'

I hope my question is clear..Sorry for the confusion caused:(
Jimmy
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: Tue Jul 13, 2004 12:08 pm    Post subject: Reply with quote

jimmy_augustine,

Did you read the 4th item in my post?

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


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Wed Jul 14, 2004 3:33 am    Post subject: Reply with quote

Kolusu,
Yes I did. So can I conclude that S0C7 is not strictly bounded for COMP-3 fields only, right?
Regards
Jimmy
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Wed Jul 14, 2004 11:51 am    Post subject: Reply with quote

Hi Jimmy,

I have a test pgm that I take with me wherever I go ( except vacation Smile ). I use it whenever I have ques like the one you posed.

As an example, I'd insert the following:

In WS:
Code:

01 num-data pic 9(04).
01 alpha-data redefines num-data pic x(04).

In PD:
Code:

move 'abyz' to alpha-data
add 1 to num-data

Then I'd let the good times roll.

And BINGO!! may ques would be answered ... and Kolusu's sleep wouldn't be disturbed.

All kidding aside, that test pgm is a handy little tool.

Regards, Jack.

P.S. My apologies for the cliche's.
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