View previous topic :: View next topic
|
Author |
Message |
Kunal Surpurkar
New User
Joined: 15 Nov 2012 Posts: 47 Location: India
|
|
|
|
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 |
|
|
Kunal Surpurkar
New User
Joined: 15 Nov 2012 Posts: 47 Location: India
|
|
|
|
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 |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Kunal Surpurkar
New User
Joined: 15 Nov 2012 Posts: 47 Location: India
|
|
|
|
Dear Nic,
Thanks for throwing the light on it. Much appreciated. |
|
Back to top |
|
|
|