Previous Topic

Next Topic

Book Contents

Book Index

IF-THEN-FAILRUN

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

Usage: Resource list

If the expression evaluates to true then the job will fail 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 FAILRUN

Examples

IF fail_var == "YES" THEN FAILRUN

IF FILE_NOT_FOUND test1.dat THEN FAILRUN

See Also

Syntax of job interaction

IF-THEN-SET

IF-THEN-SUPPRESS_RUN

IF-THEN-WAIT

INCLUDE

SET

Previous Topic

Next Topic

Book Contents

Book Index

IF-THEN-WAIT

Make a decision as to whether the job should go into a wait state.

Usage: Resource list

If the expression evaluates to true then the job waits and no other resource statements are evaluated. The entire resource list will be re-evaluated from the beginning at a later time. 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 WAIT

Examples

IF complete >= 5 THEN WAIT

IF FILE_NOT_FOUND test1.dat THEN WAIT

See Also

Syntax of job interaction

IF-THEN-SET

IF-THEN-SUPPRESS_RUN

IF-THEN-FAILRUN

INCLUDE

SET

Previous Topic

Next Topic

Book Contents

Book Index

INCLUDE

Includes the resource/end actions of another job.

Usage: Resource list/end actions list

Format

INCLUDE job_name

Examples

INCLUDE next_job

See Also

Syntax of job interaction

IF-THEN-SET

IF-THEN-SUPPRESS_RUN

IF-THEN-FAILRUN

IF-THEN-WAIT

SET

Previous Topic

Next Topic

Book Contents

Book Index

SET

Set the value of a single variable.

Usage: Resource list/end actions list

Format

SET variable=expression

Examples

SET next_var = 5

See Also

Syntax of job interaction

IF-THEN-SET

IF-THEN-SUPPRESS_RUN

IF-THEN-FAILRUN

IF-THEN-WAIT

INCLUDE