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 

S0C7 abend

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


Joined: 07 Aug 2003
Posts: 46
Topics: 18
Location: Danbury

PostPosted: Sat Dec 27, 2003 11:17 pm    Post subject: S0C7 abend Reply with quote

Hi

One of our VS-Cobol program fails with S0C7. The abend-aid report clearly tells that the statement causing the failure is

IF WS110-PCC-AMOUNT (XTBL1) IS GREATER THAN 0

At the time of abend the table field

WS110-PCC-AMOUNT (XTBL1) contains a value

X'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'

In the working storage section this field is defined as

WS110-PCC-AMOUNT PIC 9(13)V99.

Is there a possibility that this statement does cause the failure and if so why? How the comparison is done?


All ideas are welcome.

Thanks,
Vijayakrishna
Back to top
View user's profile Send private message Send e-mail
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Sun Dec 28, 2003 2:40 pm    Post subject: Reply with quote

Vijayakrishna, if you're going to compare a variable with zero, then it needs to be numeric, i.e. each digit needs to be in the range X'F0' to X'F9'. The failure occurs in the conversion of your variable to packed decimal format. Recompile your program with the 'LIST' option, then have a good look at the Assembler instructions generated for the compare.
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
vkrishna2001
Beginner


Joined: 07 Aug 2003
Posts: 46
Topics: 18
Location: Danbury

PostPosted: Wed Dec 31, 2003 1:24 pm    Post subject: Reply with quote

Mervyn,

Thanks for the help. The compile parameter LIST did not work but PMAP worked.

Vijayakrishna
Back to top
View user's profile Send private message Send e-mail
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Wed Dec 31, 2003 4:46 pm    Post subject: Reply with quote

Ah, yes. You're using a very old compiler. I'm glad you worked it out.

Happy New Year.
_________________
The day you stop learning the dinosaur becomes extinct
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