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
 

 

Abend code S0C4- specific scenario

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: Abend code S0C4- specific scenario
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Sat Sep 29, 2007 3:20 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Sun Sep 30, 2007 8:43 am    Post subject:
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Sun Sep 30, 2007 3:26 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm


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