Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Getting Protection exception error(SOC4) in PLI program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Kunal Surpurkar

New User


Joined: 15 Nov 2012
Posts: 47
Location: India

PostPosted: Tue Jul 09, 2013 3:29 pm    Post subject: Getting Protection exception error(SOC4) in PLI program
Reply with quote

Dear Team,

I have coded a PLI-IMS program that reads the IMS database and writes 2 output files. There is no error in the program and the output is as expected.

The next requirement is to write the ASCA reports to 2 output files.

I have added ASCA report to output file 1 and the program works fine.

But, When I add ASCA report as in, Assigning the amounts, record count etc using the different structures that were used during ASCA report 1, I get the below error.

Code:
CEE3204S The system detected a protection exception (System Completion Code=0C4)
Location:                                                                         
Program Unit:  Entry: DLITPLI Statement:  Offset: +00000AB2                     
Machine State:


As far as I understand, we get this error when the same fields are used for 2 different assignments.

I have checked that and modified the program as per it. But, still I get the same error.

Your input will be highly useful.

Kindly let me know incase more information is needed.
Thanks a lot in advance.
Back to top
View user's profile Send private message

Kunal Surpurkar

New User


Joined: 15 Nov 2012
Posts: 47
Location: India

PostPosted: Tue Jul 09, 2013 3:54 pm    Post subject:
Reply with quote

Dear Team,

The issue is resolved now.

I have used Procedures for the 2 reports. I kept 2 ASCA calculations in 2 different procedures and it worked icon_smile.gif
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1894
Location: UK

PostPosted: Tue Jul 09, 2013 4:22 pm    Post subject:
Reply with quote

Well, actually a protection exception occurs when you trample over storage that does not belong to your program - probably by exceeding the bounds of an array. You probably indvertantly 'fixed' the problem by restructuring your program.

You can use the same variable for as many different assignments as you want - as long as the data is compatible with the variable declaration.
Back to top
View user's profile Send private message
Kunal Surpurkar

New User


Joined: 15 Nov 2012
Posts: 47
Location: India

PostPosted: Tue Jul 09, 2013 4:33 pm    Post subject:
Reply with quote

Dear Nic,

Thanks for throwing the light on it. Much appreciated. icon_smile.gif
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us