cDSCHEDULE Automated Job Submission System Guide and Reference �ManualD

SCHEDULE
Automated Job Submission System
Guide and Reference Manual



 o T Y  
PreviousContentsIndex

R

3.2 Using Enhanced Variables



0In addition to simple resource string variables HEnterpriseSCHEDULE supports a rich set of variable expressions Gthat feature simple and complex math expressions, date expressions and Fcharacter expressions. This extends the power of variables and allows 3for run time calculation of dates and other values.

GVariable expressions are evaluated in an order and priority similar to @common math expressions and support the use of parentheses. The Hexpression is evaluated during a job submission when the job references the variable.I

3.2.1 Enhanced variable basic structure



HVariable expressions can use normal arithmatic and relational operators Bas well as parentheses to specify the order and precedence of the operations.

[  # $ &                                                         
Table 3-5 Expression operators
Operator Alternate Description
A + B   % Evaluates to the sum of A and B
A - B   1 Evaluates to the difference between A and B
A * B   ) Evaluates to the product of A and B
A / B   * Evaluates to the quotient of A and B
 A < B  A .LT. B + Evaluates to true if A is less than B
 A > B  A .GT. B . Evaluates to true if A is greater than B
 A <= B  A .LE. B 7 Evaluates to true if A is less than or equal to B
 A >= B  A .GE. B 8 Evaluates to true if A is greater than or equal to
A == B  A .EQ. B * Evaluates to true if A is equal to B
A != B  A .NE. B . Evaluates to true if A is not equal to B
A % B   3 Evaluates to the integer remainder of B and A


Expanded variable examples:

 

"
 A+(B*5) b * 2 + c / 2 X+(A>B)/(Y*Z) var1/(var2-var3) "(a < c) * 23 + (a > c) * 53  







 o V T Y  
PreviousNextContentsIndex