Previous Topic

Next Topic

Book Contents

Book Index

General Information for ON VAR

ON VAR statements are evaluated after all ON PGMST and ON SYSOUT statements have been addressed. ON VAR statements are usually, but not necessarily, followed by user-specified DO actions. The implied relationship between ON VAR statements and associated DO statements is: if the ON VAR statement criteria is satisfied, perform the associated DO statement actions.

In a new job scheduling definition, an empty ON VAR statement is followed by an empty DO statement. Additional ON VAR statements can be opened in the job scheduling definition as follows:

Below are examples of ON VAR statements with various operators:

ON VAR Example 1:

ON VAR %%VARIABLE1

OPERATOR GT   Greater than (>)

VAL %%VAR10

  DO FORCEJOB

ON VAR Example 2, with a block of two ON VAR statements:

ON VAR %%VARIABLE2

OPERATOR NP   Is not empty

VAL N/A                                               A/O A

ON VAR %%VARIABLE3

OPERATOR IR   In range (a<=x<=b)

MIN 10000

MAX 80000

  DO FORCEJOB

Parent Topic

ON VAR: Post–Processing Parameter