View previous topic :: View next topic
|
Author |
Message |
Shah
New User
Joined: 05 Sep 2006 Posts: 18
|
|
|
|
Hi Folks,
Can we invoke CICS transaction or transaction-id using a batch program?
Please explain.
Thanks,
Shah |
|
Back to top |
|
|
hariavinash
New User
Joined: 04 Jan 2006 Posts: 64
|
|
|
|
yes. This can be done using EXEC CICS START.
syntax . EXEC CICS START
TRANSID('TRN1')
TIME(185000)
TERMID('STA5')
cheers |
|
Back to top |
|
|
@stha
New User
Joined: 07 Dec 2006 Posts: 4 Location: chennai
|
|
|
|
But isn't this invocation from a CICS program rather than a batch?
I have the same query. I'm working in batch PL/1 program that should dynamically trigger a CICS transaction.
Any more insights would be useful.
Thanks & regards,
@stha |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
tkrishna4u
New User
Joined: 23 Mar 2006 Posts: 1
|
|
|
|
*==============================================================*
* Initialise Target information variables. *
*==============================================================*
01 TARGET-FILE PIC X(8) VALUE 'FILEA '.
01 TARGET-PROGRAM PIC X(8) VALUE 'CICS078'.
01 TARGET-TRANSID PIC X(4) VALUE 'UPD1'.
01 TARGET-SYSTEM.
05 TARGET-SYS-ELEM PIC X OCCURS 8 TIMES.
*
* Perform the Link Request;
*
EXEC CICS LINK PROGRAM(TARGET-PROGRAM)
TRANSID(TARGET-TRANSID)
APPLID(TARGET-SYSTEM)
COMMAREA(COMMAREA)
LENGTH(LINK-COM-LEN)
DATALENGTH(LINK-DAT-LEN)
RETCODE(EXCI-EXEC-RETURN-CODE)
SYNCONRETURN
END-EXEC.
* |
|
Back to top |
|
|
|