cDSCHEDULE Automated Job Submission System Guide and Reference �ManualD

SCHEDULE
Automated Job Submission System
Guide and Reference Manual



 o T Y  
PreviousContentsIndex






C

IF-THEN-WAIT



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

Usage: Resource list

DIf the expression evaluates to true then the job waits and no other Dresource statements are evaluated. The entire resource list will be Ere-evaluated from the begininning at a later time. If the expression Hevaluates to false than 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

!

IF expression THEN WAIT




Examples

 6    
#1

 
IF complete >= 5 THEN WAIT       


 6    
#2

 
&IF FILE_NOT_FOUND test1.dat THEN WAIT       



>

INCLUDE



1Includes the resource/end actions of another job.

%Usage: Resource list/end actions list




Format



INCLUDE job_name




Examples

 6    
#1

 
  INCLUDE [JOBS]JOB_A           



:

SET



#Set the value of a single variable.

%Usage: Resource list/end actions list




Format

!

SET variable=expression




Examples

 6    
#1

 
SET next_var = 5       




0

3.1.4 Operators

?This section defines the fundamental operators of Advanced job Dprogramming in SCHEDULE. Note that there are in some cases .more than one way to define an expression.

Y  # &      
Table 3-1 Assignment operator
Operator Description
A = B ! Assigns the value of B to A


U  # $ &                                                         
Table 3-2 Integer operators
Operator Alternate Description
 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   % 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   3 Evaluates to the integer remainder of B and A
 




 o V T Y  
PreviousNextContentsIndex