If you have defined a console entry in your CSD as CONSNAME(INTERNAL), you can submit commands to your CICS® region by using JCL.
About this task
Edit your JCL as follows. The normal rules of JCL apply.
Procedure
- Edit your JCL to use the MVS command MODIFY.
- Follow the MODIFY command with the job name or task ID of the CICS region you are addressing, followed by the CICS commands.
- Submit the JCL. 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'
//
Results
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.