View previous topic :: View next topic
|
Author |
Message |
Michael Baier
New User
Joined: 03 Nov 2008 Posts: 4 Location: Baltimore
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
|