We are in the process of upgrading to PL/I enterprise compiler. We compiled the programs we didnt have any issues, but when try to run the program, we got the error 8094.
In our program we are calling DSNTIAR for DB2 errros.
This is the error i am getting.Inside the procedure P9999_DB2_ABEND ,the above mentioned code is present.
IBM0534S ONCODE=8094 Protection exception
From compile unit GGHADP0 at entry point P9999_DB2_ABEND at compile unit offset -10E50350 at entry offset -10E51980 at address 20C05070.
Possible Bad Branch: Statement: Offset: -FFFFFE9E
dump for similar program:
================================================================================
<H2> EVENT 7 OF 14: CALL (DSA ADDRESS 000803A0)
********************************************************************************
*********************** P O I N T O F F A I L U R E **********************
********************************************************************************
This is the point where control left program GGHADP0 prior to the S0C4 abend.
NOTE: Source code information for program GGHADP0 could not be presented because
no compiler listing or side-file data sets were provided. The source file
is SYS09213.T070105.RA000.SGHSXG0F.ELMOUT.H01, line # from the GONUMBER
option is 674 for offset X'1842'.
Offset Hex Instruction
------ -------------- --------------------------------------------------------
-2C 5820 600C L R2,12(,R6)
-28 5020 109C ST R2,156(,R1)
-24 5000 1098 ST R0,152(,R1)
-20 4100 1098 LA R0,152(,R1)
-1C 58F0 3F78 L R15,3960(,R3)
-18 4110 D098 LA R1,152(,R13)
-14 5000 D098 ST R0,152(,R13)
-10 05EF BALR R14,R15
-E 4400 C1AC EX 0,428(,R12)
-A 185D LR R5,R13
-8 58F0 3F80 L R15,3968(,R3)
-4 4400 C1C0 EX 0,448(,R12)
***** 05EF BALR R14,R15
+2 4400 C1C4 EX 0,452(,R12)
+6 4400 C1AC EX 0,428(,R12)
+A 185D LR R5,R13
+C 58F0 3F84 L R15,3972(,R3)
+10 4400 C1C0 EX 0,448(,R12)
+14 05EF BALR R14,R15
+16 4400 C1C4 EX 0,452(,R12)
<H2> EVENT 8 OF 14: ABEND S0C4
Abend Code. . . . . . . . . : S0C4-X'4'
Program-Interruption Code . : 0004 (Protection Exception)
An attempt was made to access a protected storage
location using an incorrect storage access key.
I found the place where it throws the error. It is a open cursor statement.
EXEC SQL
OPEN BRANCH_CUR;
When i look into the DB2 Logs, it says
08/06 18.07.20 D2T2MSTR DSN3201I -D2T2 ABNORMAL EOT IN PROGRESS FOR USER=SGMYKG0 CONNECTION-ID=BATCH CORRELATION-ID=
D2T2MSTR JOBNAME=MRLBSC35 ASID=0225 TCB=008A2E88
and if we look at my first post, the first line of the error messge is
IDI0081I IEWBIND unusual condition INCLUDE GGHADP87 rc=83000526
When i serached for DSN3201I, it says
Explanation:During converting load module format, IEWBIND
function had return code greater than 0.
And i found in compiler messages, eventhough return code of BIND is 0, i found BINDKTSO...... RC=0005. i dont understand what it is
Can you please help me in getting this resolved. Whether i need to rebind it with some options changed.FYI we are using endevor.
The one parameter which has been changed in BIND option from old compiler to new compiler is CURRENTDATA which was previously set to YES, now we have set to NO to comply with default.
Another thought: Whether it is because of some PLAN AUTHORIZATION error, in prev compiler, it will clearly shows PLAN AUTHORIZATION error, but i dont know whether it will be the case. i seriously dont think so.
i got the following code in SYSTSPRT. I know that it will be thrown in many cases. But any thought what could be the issue if combine this error message with the ones i have mentioned above?
READY
DSN SYSTEM(D2T2)
DSN
RUN PROG(GGHADP87) PLAN(PTHADP87)
IKJ56641I DSN ENDED DUE TO ERROR+
IKJ56641I SYSTEM ABEND CODE 0C4 REASON CODE 00000004
In Old compiler, the programs were linked using DSNELI for running under TSO (IKJEFT01). But in new compiler, the programs are linking using DSNHLI which is for running using the CAF facility. Endevor team has corrected the issue by setting the LDB2LNG symbolic to DSNELI.