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

SOC4 abend in DB2 Insert


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Appu

New User


Joined: 26 Apr 2010
Posts: 73
Location: India

PostPosted: Wed Dec 08, 2010 10:21 pm
Reply with quote

Hi,

In my PLI DB2 program , I am trying to insert a row in to a DB2 table and it is giving me SOC4 abend on the insert statement. But the same row is getting inserted whn i try it through SPUFI.

The abend is as follows :

IBM0534S ONCODE=8094 PROTECTION EXCEPTION
INFORMATION FOR THREAD 8000000000000000

TRACEBACK:
DSA ENTRY E OFFSET STATEMENT LOAD MOD PROGRAM UNIT
1 CEEHDSP +000041E2 CEEPLPKA CEEHDSP

Can anyone help ? Thanks.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Dec 08, 2010 10:23 pm
Reply with quote

does the abend occur at the FIRST invocation of a DB2 service ?

if yes check the linkage editor for unresolved VCONS and AMODE/RMODE settings
Back to top
View user's profile Send private message
Appu

New User


Joined: 26 Apr 2010
Posts: 73
Location: India

PostPosted: Wed Dec 08, 2010 10:30 pm
Reply with quote

Hi ,

The insert is the 2nd statement . The previous SQL statement like Include SQLCA worked fine returning sqlcode 0.


Link step went fine . I could see AMODE and RMODE are NOT SPECIFIED.
No VCONS are unresolved. Only thebelow ones are unresolved.
IBMQOFNT
IBMQOFPT
DSNHLI
IBMQEFSH
IBMPOFCX
IBMPINPL
CEESG011
CEEBETBL
CEEROOTA
CEEOPIPI
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Dec 08, 2010 10:58 pm
Reply with quote

Quote:
Link step went fine
please define fine
what is the return code from the linkage editor ?

anyway do You, your support realize that DSNHLI is the interface stub for DB2
and that it is not supposed to be uresolved!

work with Your support to setup a proper ( compile/link) procedure
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Dec 09, 2010 1:05 pm
Reply with quote

Quote:
The previous SQL statement like Include SQLCA worked fine returning sqlcode 0


How do you know that there was an sqlcode of 0 returned for the INCLUDE SQLCA statement?
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Thu Dec 30, 2010 6:32 am
Reply with quote

Sorry for posting late, but this thread ended appearently unresolved.

Appu wrote:
Hi ,

The insert is the 2nd statement . The previous SQL statement like Include SQLCA worked fine returning sqlcode 0.


Link step went fine . I could see AMODE and RMODE are NOT SPECIFIED.
No VCONS are unresolved. Only thebelow ones are unresolved.
IBMQOFNT
IBMQOFPT
DSNHLI
IBMQEFSH
IBMPOFCX
IBMPINPL
CEESG011
CEEBETBL
CEEROOTA
CEEOPIPI

The INCLUDE SQLCA statement does not execute any code at runtime, so I assume that the INSERT statement is after all the first DB2 call when you execute your program.

I think your problem is calling the wrong DB2 connect module. The entry point DSNHLI is contained in multiple connect modules that are used for different runtime environments. For TSO batch interface (IKJEFTxx), you should load or link module DSNELI.

For further info on this, reference your current DB2 Application Programming Guide manual.
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts Identify Program Insert DB2 7
No new posts Insert trailer for non empty file only DFSORT/ICETOOL 6
Search our Forums:

Back to Top