cDSCHEDULE Automated Job Submission System Guide and Reference �ManualD

SCHEDULE
Automated Job Submission System
Guide and Reference Manual



 o T Y  
PreviousContentsIndex

E

3.2.2 Formatting math based variables



CVariable expressions can be made to be desired format by placing a Csymbol or phrase before an expression. For instance if you want an Hexpression to be resolved to an integer, you can put INTEGER before the Cexpression. A minus sign negates the value of the expression. This Ballows the value of the variable to be formatted as needed by the application.

b  # &                                  
Table 3-6 Math based variable operators
Operator Description
 - 4 Produces the negative value of the expression.
 .NOT. or ! 9 Produces the inverse value of a boolean expression.
 FILE_NOT_FOUND = Produces a 1 if file in parentheses is found. 0 if not.
 FORMAT="Picture String" l Produces the formatted value of the expression. See Section 3.3.5.
INTEGER 3 Produces the integer value of the expression.
FLOAT : Produces the floating point value of the expression.
ADATE 9 Produces the absolute date value of the expression.
DDATE 6 Produces the delta date value of the expression.


Math Based variable example:

 

"
 
FLOAT(X*Y/Z) INTEGER(VARB-VARA) !FORMAT="DD-MMMMMMMMM-YYYY" TODAY -(A+B) $FORMAT="DDMMMYY" ("BOY" + 3 months)  


>

3.2.3 Using Dates in Variables



GDates can be used in variables expressions and can be calculated using Hmath operators and date units. For instance two days added to Wednesday Fwill calculate as Friday. A month added to today will produce today's date, one month from today.

V  % $ &                                                         
Table 3-7 Date Keywords
Expression Alternate Description
BOY  BEGINNING_OF_YEAR First day of the upc year.
EOY  END_OF_YEAR  Last day of the year.
BOM  BEGINNING_OF_MONTH  First day of the month.
EOM  END_OF_MONTH  Last day of the month.
BOM  BEGINNING_OF_MONTH  First day of the month.
 MONDAY - SUNDAY    Days of the week.
) MONDAY_THIS_WEEK - SUNDAY_THIS_WEEK   = The "THIS_WEEK" word means the day of the current week.
TODAY    Today's date.
 TOMORROW    Tomorrow's date.
 YESTERDAY    Yesterday's date.
NOW   The current date and time.
 




 o V T Y  
PreviousNextContentsIndex