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

Can we invoke CICS transaction using a batch program?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Shah

New User


Joined: 05 Sep 2006
Posts: 18

PostPosted: Wed Dec 06, 2006 10:21 am
Reply with quote

Hi Folks,

Can we invoke CICS transaction or transaction-id using a batch program?

Please explain.

Thanks,
Shah
Back to top
View user's profile Send private message
hariavinash

New User


Joined: 04 Jan 2006
Posts: 64

PostPosted: Wed Dec 06, 2006 11:08 pm
Reply with quote

yes. This can be done using EXEC CICS START.

syntax . EXEC CICS START
TRANSID('TRN1')
TIME(185000)
TERMID('STA5')

cheers
Back to top
View user's profile Send private message
@stha

New User


Joined: 07 Dec 2006
Posts: 4
Location: chennai

PostPosted: Thu Dec 07, 2006 6:30 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Dec 07, 2006 6:56 pm
Reply with quote

The thread Issue a CICS command to run a transaction from batch pgm
is a good place to start.....be sure to follow the SupportPacs and Red Books links.
Back to top
View user's profile Send private message
tkrishna4u

New User


Joined: 23 Mar 2006
Posts: 1

PostPosted: Thu Dec 07, 2006 9:58 pm
Reply with quote

*==============================================================*
* 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
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
Search our Forums:

Back to Top