IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Abend code S0C4- specific scenario


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
eHorizon.Andrew

New User


Joined: 18 Jan 2007
Posts: 28
Location: Bank of communications

PostPosted: Sat Sep 29, 2007 12:07 pm
Reply with quote

I have test my program for many times, and summarize the following scenario for my abend code.

*A program is a PL/I DB2 program, and need a DBP, I can compile the program successfully, and in the A program, it calls a COBOL DB2 program B, also, B has a DBP,and in A using Fetch Declaration, and call the B program, it is depend on a parameter as a bridge, and I am sure the length of the variable are the same. When it runs, it post S0C4 abend code. And I use debug tool to monitor A program, it abends while calling B program, and debug can not go into the B program.

*C is a PL/I Datacom program, not having a DBP, all the situation are similar with A program, and calls B program, it can run successfully.

I am doubt with this problem ,can anyone help me on this?

thanks and regards...
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Sat Sep 29, 2007 3:20 pm
Reply with quote

Did you check the AMODE and RMODE? If one runs in upper memory and the other in lower memory a S0c4 often occurs.
Back to top
View user's profile Send private message
eHorizon.Andrew

New User


Joined: 18 Jan 2007
Posts: 28
Location: Bank of communications

PostPosted: Sun Sep 30, 2007 7:14 am
Reply with quote

thank you George,

But I am not quite clear about the AMODE and RMODE, could you tell me more exactly? icon_redface.gif icon_redface.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sun Sep 30, 2007 8:43 am
Reply with quote

Hello,

It will help you if you talk with your DBA or system programmer. They can tell you which mode your modules should be linked as.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Sun Sep 30, 2007 3:26 pm
Reply with quote

eHorizon.Andrew wrote:
thank you George,

But I am not quite clear about the AMODE and RMODE, could you tell me more exactly? icon_redface.gif icon_redface.gif


Memory is devided in two parts. One is called LOWER and has 16 MB in which also OS is running leaving about 7 MB for your program. The other is called UPPER and is 'unlimitied'. If one module runs in UPPER (AMODE=31) and call a module in LOWER (AMODE=24) transferring parameters or pointers one often gets a protection exception.

Check the modules in the loadlibrary for the attributes AMODE (31 or 24) and RMODE (with AMODE 31 it should be ANY).

Or indeed like Dick wrote; check with your systemprogrammer.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts After newcopy the CICS program user f... CICS 7
No new posts Extract records for a specific condit... DFSORT/ICETOOL 25
No new posts User ABEND U0476. Need help. IMS DB/DC 1
Search our Forums:


Back to Top