If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Trying to access CICS transaction from DB2 Stored procedure.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-06, 12:56
P_VENKATRAO P_VENKATRAO is offline
Registered User
 
Join Date: Jan 2006
Posts: 1
Trying to access CICS transaction from DB2 Stored procedure.

Hi
When i'm trying to invoke a CICS trasaction from DB2 stored procedure i met with some problem when writing DSNACICX user exit routine.
I'm passing some of the parameters from COBOL/DB2 stored procedure and some from DSNACICX.
Here is code from my progroam
CALL SYSPROC.DSNACICS
(:WS-PARM-LEVEL :WS-IND-PARM-LEVEL,
:WS-PGM-NAME :WS-IND-PGM-NAME,
:WS-CICS-APP-ID :WS-IND-CICS-APP-ID,
:WS-CICS-LEVEL :WS-IND-CICS-LEVEL,
:WS-CONN-TYPE :WS-IND-CONN-TYPE,
:WS-NET-NAME :WS-IND-NET-NAME,
:WS-MIRROR-TRN :WS-IND-MIRROR-TRN,
:WS-COMMAREA :WS-IND-COMMAREA,
:WS-COMMAREA-TOT-LEN :WS-IND-COMMAREA-TOT-LEN,
:WS-SYNC-OPTS :WS-IND-SYNC-OPTS,
:WS-RETURN-CODE :WS-IND-RETURN-CODE,
:WS-MSG-AREA :WS-IND-MSG-AREA)
END-EXEC.
Parameters i'm passing from my stored procudeure is
MOVE 1 TO WS-PARM-LEVEL.
MOVE 'PCSMC005' TO WS-PGM-NAME.
MOVE LENGTH OF WS-COMMAREA
TO WS-COMMAREA-TOT-LEN.
MOVE ABEND-FILE TO WS-COMMAREA.

MOVE -1 TO WS-IND-CICS-APP-ID
WS-IND-CICS-LEVEL
WS-IND-CONN-TYPE
WS-IND-NET-NAME
WS-IND-MIRROR-TRN
WS-IND-RETURN-CODE
WS-IND-MSG-AREA.

Parameters passed from DSNACICX is
SET ADDRESS OF COMMAREA TO XPL-COMMAREAPTR.
MOVE 'CICSDB ' TO XPL-CICSAPPLID.
MOVE 2 TO XPL-CICSLEVEL.
MOVE 'SPECIFIC' TO XPL-CONNECTTYPE.
MOVE 'CICSDB ' TO XPL-NETNAME.
MOVE 'CSMI' TO XPL-MIRRORTRAN.
GOBACK.
When i execute this i'm getting

12 DSNA314I UNABLE TO LOAD CICS STUB ROUTINE DFHXCSTB. SYSTEM REASON CODE = X'0004' SYSTEM COMPLETION CODE = '0806'

Please advise some body what might be the wrong with mine

Thank you
Venkat
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On