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

system protection exception


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pa3lo

New User


Joined: 26 Mar 2007
Posts: 9
Location: Argentina

PostPosted: Wed Mar 26, 2008 1:12 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Mar 26, 2008 1:30 am
Reply with quote

Hello,

Code:
01 RET-CTEBD001.
Where in your code is this definition? File, ws, linkage?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Mar 26, 2008 2:15 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Mar 26, 2008 3:26 am
Reply with quote

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
View user's profile Send private message
pa3lo

New User


Joined: 26 Mar 2007
Posts: 9
Location: Argentina

PostPosted: Thu Mar 27, 2008 7:00 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 27, 2008 7:34 am
Reply with quote

Thank you for letting us know.

Good to hear the abend is resolved icon_smile.gif

d
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts Check data with Exception Table DB2 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts JCL Dynamic System Symbols JCL & VSAM 3
Search our Forums:

Back to Top