Using expressions and operators in CLISTs


All of the arithmetic, comparative, and logical operators that are described in the IBM publication OS/VS2 TSO Command Language Reference Manual are valid in an EXEC expression running within MainView AutoOPERATOR.

An expression combines variables, whole numbers, and character strings with operators. For example, the EXEC statement

IF &CMD=&SUBSTR(1:2,&Z1) THEN ...

uses the comparative operator = in an expression with the TSO IF conditional statement to compare the first two characters of the character string in the &Z1 symbolic variable to the value in the &CMD symbolic variable.

The symbolic &SUBSTR is a TSO built-in function that replaces &SUBSTR with specific characters from a character string. The actual characters are selected by specifying a numeric range enclosed in parentheses (start-expression:end-expression) for the portion of the character string to be used.

In this example, &SUBSTR is replaced with the first two characters of the character string substituted for the &Z1 symbolic variable.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*