Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

S0CA abend happening in Assembler program for Instruction AP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
RAJA SEKHAR

New User


Joined: 28 Apr 2009
Posts: 5
Location: United Kingdom

PostPosted: Wed Apr 29, 2009 8:16 pm    Post subject: S0CA abend happening in Assembler program for Instruction AP
Reply with quote

Hi

I encountered S0CA abend in Instruction AP.

AP 23(6,R9),TEMP

First Operand Length. . . : 6
First Operand Storage . . : 00010202 033C

Second Operand Length . . : 6
Second Operand Storage. . : 00011000 097C

I am trying to increase the length from 6 to 7.
I heard about the same problem in other forums and they were discussing about a potential PTF for this. Anybody have updates about this?
Back to top
View user's profile Send private message

RAJA SEKHAR

New User


Joined: 28 Apr 2009
Posts: 5
Location: United Kingdom

PostPosted: Wed Apr 29, 2009 8:18 pm    Post subject: Reply to: S0CA abend happening in Assembler program for Inst
Reply with quote

I checked the Condition code to be 3. It is certainly Decimal Overflow exception. Hence thinking of increasing the L1 from 6 to 7. But is this right way of solving this kind of problem?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Apr 29, 2009 8:22 pm    Post subject: Reply to: S0CA abend happening in Assembler program for Inst
Reply with quote

I do not see how a PTF would fix a "DECIMAL OVERFLOW"

providing a longer field for the first operand should fix the problem
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Apr 30, 2009 2:26 am    Post subject:
Reply with quote

Hello,

Quote:
I heard about the same problem in other forums and they were discussing about a potential PTF for this. Anybody have updates about this?
A little bit of incomplete/misunderstood information goes a long way. . .

Some time ago, i seem to remember a ptf for LE (and possibly another for SAS - or some other product icon_confused.gif ) that corrected s0ca abends. Been a while and i don't completely trust my memory.

These would have nothing to do with one's own assembler code. . .
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Thu Apr 30, 2009 2:43 am    Post subject: Re: S0CA abend happening in Assembler program for Instructio
Reply with quote

RAJA SEKHAR wrote:
I encountered S0CA abend in Instruction AP.

AP 23(6,R9),TEMP

First Operand Length. . . : 6
First Operand Storage . . : 00010202 033C

Second Operand Length . . : 6
Second Operand Storage. . : 00011000 097C

I guess we need to trust you on the last length.
Quote:
I am trying to increase the length from 6 to 7.

Why? The receiving length is more than enough for the sum of the two operands.
If you are saying those are the data values and that is the instruction that overflowed then I come to the conclusion that something ain't right.
Recheck.
Back to top
View user's profile Send private message
RAJA SEKHAR

New User


Joined: 28 Apr 2009
Posts: 5
Location: United Kingdom

PostPosted: Thu Apr 30, 2009 6:39 pm    Post subject: Reply to: S0CA abend happening in Assembler program for Inst
Reply with quote

Thanks for all your replies. I was able to solve the problem by increasing the length in first operand to 7. But I got stuck with S0C4 with reason code 10 which said Segment translation exception. Atlast I found that this S0C4 was due to Residence mode. Kept RMODE 24. It worked well!

This piece of code wasn't giving S0C4 when in production region where RMODE is ANY. Should I assume the production and test regions have different settings?
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 30, 2009 6:59 pm    Post subject: Reply to: S0CA abend happening in Assembler program for Inst
Reply with quote

Just make sure that the program is not using RMODE24-mandated Macros, such as a DCB or, if it's a sub-program, that the caller requires the sub-program to be RMODE24.

Regards,
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us