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
 

 

U4039-8 ABEND (COBOL DB2 Program)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
Michael Baier

New User


Joined: 03 Nov 2008
Posts: 4
Location: Baltimore

PostPosted: Thu Sep 01, 2011 2:11 am    Post subject: U4039-8 ABEND (COBOL DB2 Program)
Reply with quote

Hi,

I am writing a Mainframe COBOL DB2 program where i need to call another COBOL program but i do this i recieve a S0C4 error. Any Ideas?!

PROGRAM
$1194.ROME.SOURCE(MROME1)
~In paragraph 2100-CALL-H9NMRD3V-GET-NUMI when calling H9NMRD3V:
CALL 'H9NMRD3V' USING M-NMRDR-PASSED-FIELDS
NUMIDENT-RECORD-TABLE
WT-USER-REQUEST-BLOCK.

I receive the following error:

ERROR
CEE3204S The system detected a protection exception (System Completion Code=0C4 ).
From compile unit MROME1 at entry point MROME1 at compile unit offset +000013E6 at entry offset +000013E6 at
address 30CC36E6.

A storage reference exception occurred during execution of program
H9NMRD3V. The expected completion code is S0C4.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 01, 2011 2:26 am    Post subject:
Reply with quote

i imagine one of the following structures:
M-NMRDR-PASSED-FIELDS
NUMIDENT-RECORD-TABLE
WT-USER-REQUEST-BLOCK.

was not properly addressed by MROME1 before attempting the CALL.

since it is first on the list and because of the name of the structure,
i would start with: M-NMRDR-PASSED-FIELDS
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Thu Sep 01, 2011 2:38 am    Post subject: Reply to: U4039-8 ABEND (COBOL DB2 Program)
Reply with quote

Ah, beat me dbz.

I even agree, from the name, which is the most likely culprit. Then the 2nd on, and last the WT-.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 01, 2011 3:18 am    Post subject:
Reply with quote

something else to think about:

1. does the PROCEDURE DIVISION USING list,
match that of the
CALL USING list?

2. you have the offset of the ABEND.
you have a STATIC CALL,
Determine which instruction in H9NMRD3V returned a SOC4.
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 IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


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