View previous topic :: View next topic
|
Author |
Message |
pa3lo
New User
Joined: 26 Mar 2007 Posts: 9 Location: Argentina
|
|
|
|
I'm getting the following abend code when executing a cobol program:
CEE3204S The system detected a protection exception (System Completion Code=0C4).
From compile unit TEBDM06V at entry point TEBDM06V at statement 245 at compile unit offset +000006A8 at
entry offset +000006A8 at address 40A996A8.
Looking at my last compilation i see that the statement 245 is:
INITIALIZE RET-CTEBD001
With the following structure for RET-CTEBD001:
01 RET-CTEBD001.
03 RET-COD-TIPO-ERR PIC X(1).
03 RET-COD-ERROR PIC 9(4).
03 RET-COD-PROG-ERR PIC X(8).
03 RET-COD-PARR-ERR PIC X(4).
03 RET-COD-TABL-ERR PIC X(8).
03 RET-COD-FUNC-ERR PIC X(8).
03 RET-COD-SQLCODE PIC S9(4).
03 RET-DES-ERROR PIC X(20).
03 RET-COD-FILLER PIC X(13).
03 RET-COD-VAR1 PIC X(30).
03 RET-COD-VAR2 PIC X(30).
03 RET-COD-VAR3 PIC X(30).
03 RET-COD-VAR4 PIC X(30).
03 RET-COD-VAR5 PIC X(30).
Can anyone help me with this error?? I don't have any clue of what it can be. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Where in your code is this definition? File, ws, linkage? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
From Quick Reference:
Quote: |
CEE3204S The system detected a protection exception (System Completion Code=0C4).
Explanation: your program attempted to access a storage location to which it was not authorized. Programmer Response: Check your application for these common errors:
o Using the wrong AMODE to reference storage
o Trying to use a pointer that has not been set
o Trying to store data into storage reserved for the system
o Using an invalid index to an array |
So check for above, might help. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I forgot to mention before - if the definition is in a file, make sure the file has been opened and has not yet been closed. |
|
Back to top |
|
|
pa3lo
New User
Joined: 26 Mar 2007 Posts: 9 Location: Argentina
|
|
|
|
Solved, the problem was that my program was called from other which was sending two parameters in the CALL but RET-CTEBD001 was the fourth parameter of the linkage of my program.
Thanks anyway. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Thank you for letting us know.
Good to hear the abend is resolved
d |
|
Back to top |
|
|
|