Using JCL to initiate CICS commands

If you have defined a console entry in your CSD as CONSNAME(INTERNAL), you can submit commands to your CICS® region by using JCL.

Your JCL should use the MVS™ MODIFY command and the job name, or task ID, of the CICS region you are addressing, followed by the CICS commands. The normal rules of JCL apply.

The following sample job shows how you might submit commands in this way.

//IEFBR14 JOB (accounting information),CLASS=A,MSGCLASS=A,MSGLEVEL=1,...,...
//*
//*  Sample JOB to submit CICS commands using CONSNAME(INTERNAL)
//*
//IEFBR     EXEC PGM=IEFBR14
// F CICSRUN,'CEMT INQ TER'
// F CICSRUN,'CEMT INQ TAS'
// F CICSRUN,'CEMT SET TER(L77C) ACQ'
//
Note:
If you omit the apostrophes around the CICS command, and there are sequence numbers at the end of the line, the numbers are passed to CICS as part of the command. This causes CICS to display a warning message on the console, but the command is still obeyed.

Related tasks
Operating CICS from a console device
Entering commands from a console device
Console device messages
[[ Contents Previous Page | Next Page Index ]]