NOACT – Peform no action
The main purpose of the NOACT
command
is to be a null action for complex IF
expressions
where the action you really want is the ELSE
condition.
The NOACT
command has no arguments, does
nothing and always ends with return code zero.
For example:
IF (@CMD(CHK1.EQ.0)) & (@CMD(CHK2.EQ.0)) THEN NOACT
ELSE SENDMSG T(Something failed) U(ADCDMST)
Note: The
NOACT
statement performs no action
at all, but accepts further text following the command. Therefore,
you can use NOACT
as a testing or diagnostic
aid to see the value of variables being resolved at that point:08/21 14.48.03 EQQI200I NOACT !_LSTAT1_CPOPERR
08/21 14.48.03 EQQI201I NOACT SB37
08/21 14.48.03 EQQI299I Statement completed - RC=0 (00000012)