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

Invoking a transaction via a batch job


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

New User


Joined: 29 Jan 2007
Posts: 33
Location: chennai

PostPosted: Wed Mar 14, 2007 5:41 pm
Reply with quote

Hi,

How to invoke a transaction via a batch job. My requirement is to run a series of transaction and this has to be done using a JCL. The JCL should run all my transaction consecutively

Can any one help me out..???
Back to top
View user's profile Send private message
dineshness

New User


Joined: 25 Dec 2006
Posts: 63
Location: Perambalur

PostPosted: Wed Mar 14, 2007 11:00 pm
Reply with quote

I guess this is not possible though the vice versa is possible that is to submit a JCL from CICS program.

Do you already know that this is possible in some way because you have heard from somebody or read somewhere long time ago?.

If you get to find a way to do this, Keep us updated.

Dinesh.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 15, 2007 12:11 am
Reply with quote

Hello,

You can execute CICS transactions from a batch job but they should not be transactions that use maps. Many sites use scheduled batch jobs to close files/databsaes and bring down CICS regions.

Please talk with your system support people and see what your site uses for batch communication to CICS.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu Mar 15, 2007 12:14 pm
Reply with quote

Alternative option #1:
If you want to execute series of CICS transactions which is not interactactive (NO CICS online screens), then if JCL option is NOT do able then you can create and execute an online test transaction /program with series of cics call/links to execute all your series of CICS transactions.

Alternative option #2:
If you have MQ series then you can setup trigger for all your CICS transactions, and from Batch MQ program PUT messages to MQ and this should trigger all your CICS transactions.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 15, 2007 7:07 pm
Reply with quote

Hello,

There are also several add-on products that provide this funtionality.

As i mentioed earlier, please talk with your system support people and find out what method is used at your location. Your solution should be the same as others as already implemented.
Back to top
View user's profile Send private message
senthilssg

New User


Joined: 09 Dec 2005
Posts: 64
Location: USA

PostPosted: Mon Apr 02, 2007 8:56 pm
Reply with quote

Hi ,

You can able to call CICS Tx from batch via following methods


External CICS interface provides two forms of programming interface:

i. EXCI Call Interface
ii. EXCI CICS Interface


External CICS interface

It provides a single, composite command?EXEC CICS LINK PROGRAM?that performs all six commands of the EXCI CALL interface in one invocation. This command is similar but not identical to the distributed program link command of the CICS command-level application programming interface.

For more information on External CICS Interface, Please refer CICS External Interface Guide.
Activating EXCI in CICS:

1 .CICS supplied group DFH$EXCI needs to be installed.

2. Add DFH$EXCI to the list which is mentioned in the GRPLIST parameter of the SIT.


Example:

Code:
EXEC CICS LINK PROGRAM(TARGET-PROGRAM)
           RETCODE(EXCI-EXEC-RETURN-CODE) SYNCONRETURN
           COMMAREA(COMMAREA) LENGTH(LINK-COM-LEN)
           APPLID(TARGET-SYSTEM)
           TRANSID(TARGET-TRANSID)
           DATALENGTH(LINK-DAT-LEN)
           END-EXEC


For further information, please refer CICS External Interfaces Guide V 3.1 - dfhtmb04

Some points

1.you will have write a samml cobol pgm which have the above EXEC CICS LINK statemnts .After complile and link edit the program

2 .Now you can able to execute the program ( which invoke ur CICS Tx inernally ) as like plain cobol program

Code:

//STEP1 EXEC PGM=CICSSAMP                       
//STEPLIB DD DISP=SHR,DSN=yourloadlib
//         DD DISP=SHR,DSN=CEE.SCEERUN         
//SYSPRINT DD SYSOUT=*                         
//SYSOUT   DD SYSOUT=*                       
 



Hope this help you .

Thanks and Regards
Senthil
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 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 Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Batch install term/printer CICS 2
Search our Forums:

Back to Top