View previous topic :: View next topic
|
Author |
Message |
bamohan
New User
Joined: 29 Jan 2007 Posts: 33 Location: chennai
|
|
|
|
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 |
|
|
dineshness
New User
Joined: 25 Dec 2006 Posts: 63 Location: Perambalur
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
senthilssg
New User
Joined: 09 Dec 2005 Posts: 64 Location: USA
|
|
|
|
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 |
|
|
|