cDSCHEDULE Automated Job Submission System Guide and Reference �ManualD

SCHEDULE
Automated Job Submission System
Guide and Reference Manual



 o T Y  
PreviousContentsIndex



FThe following example displays the current value of a date expression:

 

"
 $Schedule> dir/var/full variable1  [MYFOLDER]VARIABLE1      Comment                   = +    Type                      = Expression 0    Value                     = "TODAY" + 1 DAY 7    Result                    = August 22, 2006,  0:00  


C

3.2.4 Using Strings in Variables



BAny alphnumeric string can be used in a variable as long as it is Gwithin quotes and doesn't conflict with the date keywords described in kSection 3.2.3. When a string is added to another variable element, the Ctwo elements are appended. By default the result is a string. Some %example of string variable operation:

 

"
 >"Today's Date is " +  FORMAT="DD MMMMMMMMMM"  (ADATE "today")  "XXX" + var1 + "YYY"  
newvar - "r"  


Y

3.3 Job command preprocessing



DThe commands in a job are run through a pre-processor searching for Econtrol instructions and variable replacement expressions before the Cjob is created. This allows the command expressions to read and/or Gmodify aspects of the job before it is submitted. Once this is done, a Etemporary command file is created and used by the job when it starts.

For example:

    D
  1. A variable named F1 contains the name of a file to copy. The F variable F2 contains the destination name and folder. The following / command will copy the contents from F1 to F2.

     

    "
      copy ((F1)) ((F2))  
    
    
    F
    The schedule system will replace ((F1)) and ((F2)) with their H corresponding values before creating the temporary command file and  starting up the job.E

  2. A program always requests two inputs from the running command G file. In the example below the command requests today's date and the constant 23

     

    "
      $! run the report  $ RUN REPORT  ((DATE TODAY "MM/NN/YY"))  23  $!  
    
    
    I

  3. Check to see if a variable has been set, if not terminate the job.

     

    "
       ((IF_BLANK JOB_DATA_VARIABLE)) . rem Job_data_variable not set, will now exit  exit  ((ENDIF))  
    
    
    

2

3.3.1 Variable types



GThere are two types of variables available to the preprocessoe: GLOBAL Band LOCAL. There is also a group of built-in local variables. Any Fnumber of additional local variables can be created. Global variables 3are any variable created inside EnterpriseSCHEDULE.H

3.3.1.1 Job specific local variables



GA number of standard job specific local variables are available inside Heach job. They can be used to refer to details of the job. Some overlap 9exists between the three types of variables listed below.

<Current settings variables - These are the Hcharacteristics of the job at the time it is being created.
Example:

 

"
$DATE = 20030911 
$DAY = 11  $FULL_JOB_NAME = [BTESTDIR]TEST $HOUR = 11 $JOB_NAME = TEST 
$MINUTE = 27 $MONTH =  9 $P1 = $P2 = $P3 = $P4 = $P5 = $P6 = $P7 = $P8 = $RESTART = FALSE $RESTART_DOWN_COUNT = 0 $SCHEDULE_SET_ID = 100000 $SCHEDULE_SET_PARAMETER = $SCHEDULE_SET_TAG = $SET_ID = 100000 $SET_PARAMETER = $SET_TAG = 
$STEP = 0 
$TIME = 1127 
$YEAR = 2003 


G
Current job attribute variables - Current job E attribute variables are all the static job data fields for the job  being submitted.
Example:




 o V T Y  
PreviousNextContentsIndex