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

U4039-8 ABEND (COBOL DB2 Program)


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
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
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Sep 01, 2011 2:38 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top