Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we invoke CICS transaction using a batch program?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Can we invoke CICS transaction using a batch program?
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    Post subject:
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    Post subject: more doubt..
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: 3158
Location: Tucson AZ

PostPosted: Thu Dec 07, 2006 6:56 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us