cDSCHEDULE Automated Job Submission System Guide and Reference �ManualD

SCHEDULE
Automated Job Submission System
Guide and Reference Manual



 o T Y  
PreviousContentsIndex






B

IF-THEN-SET



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

$Usage: Resource list/end action list

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

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




Format

6

IF expression THEN SET variable = expression




Examples

 6    
#1

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


 6    
#2

 
,IF FILE_NOT_FOUND test1.dat THEN set test=0       



G

IF-THEN-FAILRUN



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

Usage: Resource list

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

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




Format

$

IF expression THEN FAILRUN




Examples

 6    
#1

 
#IF fail_var == "YES"  THEN FAILRUN       


 6    
#2

 
)IF FILE_NOT_FOUND test1.dat THEN FAILRUN       



K

IF-THEN-SUPPRESS_RUN



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

Usage: Resource list

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

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




Format

)

IF expression THEN SUPPRESS_RUN




Examples

 6    
#1

 
 IF total != 5 THEN SUPPRESS_RUN       


 6    
#2

 
.IF FILE_NOT_FOUND test1.dat THEN SUPPRESS_RUN       





 o V T Y  
PreviousNextContentsIndex