Previous Topic

Next Topic

Book Contents

Book Index

Syntax of job interaction

This section displays examples of the syntax that can be used to perform advanced job interaction in Schedule. There are four list types that can be used in advanced job interaction. These are:

List type

Allowable constructs

Prerequisites list

Job names,IF expression

Resource list

REM

SET variable=expression

IF expression THEN WAIT

IF expression THEN SUPPRESS_RUN

IF expression THEN SET variable=expression

IF FILE_NOT_FOUND THEN expression

End action list

REM

SET variable=expression

IF expression THEN SET variable=expression

Initiates list

Job name, IF expression

In This Section

IF-THEN-SET

IF-THEN-SUPPRESS_RUN

IF-THEN-FAILRUN

IF-THEN-WAIT

INCLUDE

SET

See Also

Resources - Advanced job interaction

How jobs are processed

Advanced job examples

Operators

Where to use advanced job interaction

Advanced scheduling examples

Previous Topic

Next Topic

Book Contents

Book Index

IF-THEN-SET

Make a decision as to whether a variable will be updated.

Usage: Resource list/end action list

If the expression evaluates to true then variable will be updated. Other wise the statement is ignored and the next statement is evaluated.

The operator FILE_NOT_FOUND can be used in any IF-THEN statement. It tests for the presence of one or more files and evaluates to true if the file is not present. The file name specification can include wildcards.

Format

IF expression THEN SET variable = expression

Examples

IF run_count == 5 THEN SET total=counter-5

IF FILE_NOT_FOUND test1.dat THEN set test=0

See Also

Syntax of job interaction

IF-THEN-SUPPRESS_RUN

IF-THEN-FAILRUN

IF-THEN-WAIT

INCLUDE

SET

Previous Topic

Next Topic

Book Contents

Book Index

IF-THEN-SUPPRESS_RUN

Make a decision as to whether the job run should be suppressed.

Usage: Resource list

If the expression evaluates to true then the job is not executed and no other resource statements are evaluated. The resource list will not be evaluated again. If the expression evaluates to false than the statement is ignored and the next statement is evaluated.

The operator FILE_NOT_FOUND can be used in any IF-THEN statement. It tests for the presence of one or more files and evaluates to true if the file is not present. The file name specification can include wildcards.

Format

IF expression THEN SUPPRESS_RUN

Examples

IF total != 5 THEN SUPPRESS_RUN

IF FILE_NOT_FOUND test1.dat THEN SUPPRESS_RUN

See Also

Syntax of job interaction

IF-THEN-SET

IF-THEN-FAILRUN

IF-THEN-WAIT

INCLUDE

SET