Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

system protection exception

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: system protection exception
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

Site Director


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

PostPosted: Wed Mar 26, 2008 1:30 am    Post subject:
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

Senior Member


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

PostPosted: Wed Mar 26, 2008 2:15 am    Post subject:
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

Site Director


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

PostPosted: Wed Mar 26, 2008 3:26 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Mar 27, 2008 7:34 am    Post subject: Reply to: system protection exception
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Get system time in micro second or cl... lind sh CICS 11 Mon Sep 05, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us