Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10327
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: 2504
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 ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Sr SW Eng-Rocket Software (Assembler,... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:29 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us