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 CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am


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