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
 
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: 6970
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: 7314

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: 6970
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 The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

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