View previous topic :: View next topic
|
Author |
Message |
sravindra_s
New User
Joined: 29 Nov 2005 Posts: 8
|
|
|
|
How to trigger a Transaction say (ABCD) from a Batch program.
where ABCD is Mapped to a program HROO50.
Can we add a step in JCL or any other means. Please suggest on this !!!!! |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
The CICS External Interfaces Guide manual discusses the EXCI API which is designed to allow batch programs to invoke CICS programs. I suggest starting with this manual. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
Back to top |
|
|
sravindra_s
New User
Joined: 29 Nov 2005 Posts: 8
|
|
|
|
Hi Thanks for the information. Based on that I have coded as below
EXEC CICS LINK PROGRAM(WS-CARD-PROGRAM)
TRANSID('STU1')
APPLID(WS-CARD-REGION)
COMMAREA(DFHCOMMAREA)
LENGTH(LENGTH OF DFHCOMMAREA)
DATALENGTH(LENGTH OF DFHCOMMAREA)
RETCODE(EXCI-EXEC-RETURN-CODE)
SYNCONRETURN
END-EXEC.
But program failed with as below in sysout.
"
OPEN02 - RC1=000000088 RESP2=000000414 ABCODE= LINK TO ACOCHILD UNSUCCESSFUL
OPEN02 - RESP=00000088,RESP2=00000414,ABCODE= ,MSG=DFHAC2206 10:07:26 CICSTRAB Transaction STU1 faile".
when refered the manual it has "The target transid passed in the external CICS interface call is not defined on the target CICS system. Note the message received from the target CICS system. "
But Both STU1 and Program are defined in the cics region
I TRAN(STU1)
STATUS: RESULTS - OVERTYPE TO MODIFY
Tra(STU1) Pri( 001 ) Pro(ACOCHILD) Tcl( TRCLSTU1 ) Ena Sta |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
Verify below check list as, also it Sounds like you are not getting to intended region.
1.ensure SYSIN SIT OPTIONS,for,target CICS region contains
ISC=YES,
IRCSTRT=YES,
2.verify you have a mirror transaction defined (default is CSMI)
3.verify you have an IRC CONNECTION and SESSION defined properly
You can perform a CEMT I CONN to view if you IRC connection is properly opened.
Finally, I would consider reviewing BatchCICS-Connect software to see if that fits your needs. Provides internal DPL pipe connections rather than EXEC CICS LINK.
Also, please refer to below link
ibmmainframes.com/about53154.html |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
Do you have Synchro at your shop? I've always found that makes the process very straightforward. |
|
Back to top |
|
|
sravindra_s
New User
Joined: 29 Nov 2005 Posts: 8
|
|
|
|
Verified
ISC=YES,
IRCSTRT=YES, are present
Verified
CEMT I CONN
I CONN
STATUS: RESULTS - OVERTYPE TO MODIFY
Con(XXXX) Ins Irc Exci
More over compiled with
IN SYSLIB
DD DSN=DFH4.&CICSVER..CICS.SDFHMAC(DFHEXLI),DISP=SHR
In SYSLIN
DD DSN=DFH4.&CICSVER..CICS.SDFHEXCI,DISP=SHR
which were not present earlier in Compile JCl.
But the program is still failing with
OPEN02 - RC1=000000088 RESP2=000000414 ABCODE= LINK TO ACOCHILD UNSUCCESSFUL
OPEN02 - RESP=00000088,RESP2=00000414,ABCODE= ,MSG=DFHAC2206 11:02:30 CICSTRAB Transaction STU1 faile
Let me know if still any verifications and inclusions to be made for successful run of the program |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
A batch program does NOT and CANNOT use EXEC CICS -- hence the EXCI API that I referenced earlier. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
This one is a classic.
TS: How do I do this?
A: Here are two links that show how.
TS: Thanks, I didn't read those, but I'm going to say I did and post my code which looks like the original problem in those links that was corrected, then say that I read the links and modeled my code on the answers.
A: Dude, seriously...you can't do that. |
|
Back to top |
|
|
|