Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Invoking a transaction via a batch job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Invoking a transaction via a batch job
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    Post subject:
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

Site Director


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

PostPosted: Thu Mar 15, 2007 12:11 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Mar 15, 2007 7:07 pm    Post subject:
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    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 3 Fri Sep 15, 2017 9:20 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us