Previous Topic

Next Topic

Book Contents

Book Index

KOA Return Code

KOA scripts supply return codes through variable %RC. Return codes can be checked by a Control-O rule in the following way:

Table 26 KOA Sample Script to Check KOA Return Codes

Command

Explanation

DO KSL CICSTEST WAITMODE Y

Execute KOA script CICSTEST and wait until script execution is completed.

IF %%KSLRC EQ 0

Determine if variable %%KSLRC returns a return code of 0, indicating that the KOA script ended successfully. If successful, process the following script commands. If not, skip the following script commands.

DO ...

Process these script commands.

ENDIF

Indicate end of script commands relevant to return code 0.

Parent Topic

Communicating With Control-O