Search

Saturday, January 12, 2013

Triggering CICS transaction from batch - PART 2


Options commonly used in CICS to trigger transaction through Batch

Please refer Part 1 before going to this blog.

1: For some application user id and password is mandatory.This can be done by Identifying Transactions with Userid & Password

If the transaction requires sign-on, CESN transaction can be send as first command
Example:
// COMMAND 'F CICREN1,CESN USERID=xxx,PS=yyyy'
// COMMAND 'F CICREN1,TXN1'

It is possible to avoid having the password appear in the JCL by coding the only the userid. In this case, CICS will prompt the operator to enter the password on the console.
Example: 
// COMMAND 'F CICRGN1,CESN USERID=xxx'
// COMMAND 'F CICRGN1,TXN1'

2. There are some applications which sends some data when user login like 'welcome to site' etc.This can be done by sending data with to the program

Data can be send to the CICS program from batch by appending it to the transaction.
 Example:
// COMMAND 'F CICREN1,TXN1 DATA

Application program can get this data using the following RECEIVE command in CICS.


No comments:

Post a Comment