The IF control statement can be used for conditional execution of statements.
The evaluation of the IF control statement determines a true or false condition. If the condition is true, processing continues with the next statement. If the condition is false, processing continues with the statement following either the corresponding ELSE control statement or END control statement if an ELSE control statement was not provided. Conclude the group of statements related to the IF control statement with END.
IF condition THEN … … ELSE … … END
where:
Specifies the condition that is checked to determine the sequence of statements to execute.
Nests the IF control statement to any level within DO or other IF control statements.
The ELSE control statement is optional.
To accumulate the number of catalogued and uncatalogued tapes for later printing, specify:
/DEFINE (CAT,UCAT) BIN /IF TAPECAT = 'N' / SET UCAT=UCAT+1 /ELSE / SET CAT=CAT+1 /END
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|