Previous Topic

Next Topic

Book Contents

Book Index

Preset Environments and Batch Jobs

Before a KOA script designed for a preset environment can be executed, the preset environment must be defined. To achieve this, Control-O normally invokes the necessary scripts to preset the environment. When a KOA script designed for a preset environment is to be executed in batch, a controlling KOA script must be included to simulate Control-O actions. The controlling script invokes the scripts which create and maintain the preset environment.

The following job contains a controlling KOA script. It invokes the same scripts shown in the previous example.

Figure 8 Sample Job Containing a Controlling KOA Script

//JOB1    JOB ....

//STEP0001 EXEC IOARKOA,OUTDUMP=X

//DAKSLPRM DD *

*

  SETVAR %FIL DATA `FILE1’

  CALLMEM CICST INIT

  CALLMEM CICSINQ %FIL

  CALLMEM CICST RESET

  IFVAR %%DSTATUS EQ `O’ GOTO SKIPOPEN

  CALLMEM CICSOPEN %FIL

  CALLMEM CICST RESET

LABEL SKIPOPEN

  CALLMEM CICST TERM

  END

*

//

Parent Topic

KOA Implementation Considerations