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'

Triggering CICS transaction from batch - PART1


Basics on Triggering transaction from batch

In CICS, we can trigger transaction from batch. Before triggering there is some settings which should be present for CICS to accept the commands from batch, there is console definition which should defined in the terminal table and these are provided in the IBM supplied resource group DFH$CNSL. Please check if that is set else contact admin group of CICS to have that set up.

MODIFY command is used to trigger the transaction from a batch job and it abbreviated to F.
Example: 
Following JCL executes the transaction TXN1 in the CICS region CICREN1
//CICSBTH1 JOB …
//STEP001 EXEC ...

Saturday, November 17, 2012

MQPUT Through JCL

JCL to LOAD the Data into MQ(Message Queue) channels from a sequential data set.

With CSQUTIL MQPUT can be done in batch.

//MQLOAD1  JOB (ABCDEFGH),'ABCDEFG',
//         MSGCLASS=T,SCHENV=DB2DBJB,
//         NOTIFY=&SYSUID,TIME=90
//*
//MKCMDS   EXEC PGM=CSQUTIL,PARM='Queue Manger Name'
//STEPLIB   DD DSN=MQM.M***.SCSQAUTH,DISP=SHR
//INFILE   DD DISP=SHR,DSN=TEST.RSS.XCI0500.STRGTEST.INPUT
//SYSPRINT DD SYSOUT=*
//CSQUOUT  DD SYSOUT=*
//SYSIN    DD *
LOAD QUEUE ( PK01) DDNAME(INFILE)
/*

JCL to Alter and Define Queues

Commands can be executed in JCL to alter/define MQ

Here I am altering INITQ for Local Queue PK01.

//PRODSTEP EXEC PGM=CSQUTIL,PARM='QueueManger Name'        <===== QMGR ?????
//SYSPRINT DD SYSOUT=* 
//STEPLIB DD DSN=MQM.SCSQLOAD,DISP=SHR 
//SYSIN DD *
COMMAND DDNAME(CMDGET)
/*
//CMDGET DD *
ALTER QLOCAL(PK01) INITQ(CICS1.INITQ)