cRSCHEDULE Automated Job Submission System Guide and Reference Manualc

SCHEDULE
Automated Job Submission System
Guide and Reference Manual



 o T Y  
PreviousContentsIndex



 

"
 +    ((IF_ZERO COUNT))All finished((ENDIF))  



Example:

 

"
 *    (( IF_NOT_BLANK /MASTER/FILE_NAME *)) "    EXEPROC ((/MASTER/FILE_NAME))     (( ELSE *)) #    ECHO No master file specified!     (( ENDIF *))  


L
In the EQUAL conditions the variable can be either a symbol name or 0 a string constant as in "ssss".
Example:

 

"
 <    ((IF_EQUAL MODE "TEST_MODE)) Skipping the job ((ENDIF))  


I

  • SET Command - A SET command will create or modify G a local variable. Local variables only exist for the duration of the  pre-processing.

     

    "
        ((SET variable value))  
    
    
    
    Example:

     

    "
     '    ((SET CONTROL_FLAG "START_NOW" *))  
    
    
    I
    This will set a variable and the "*" will prevent this line from ( creating a blank line in the output.H

  • Preset DO loop - A DO section repeats the number - of times indicated by the control variable.

     

    "
     ,    ((DO max_count_variable)) ... ((ENDDO))  
    
    
    
    Example:

     

    "
         ((DO 4))X((ENDDO))  
    
    
    H
    This example will result in the string "XXXX" to be written out.

     

    "
          ((SET A_0000 "ONE"))      ((SET A_0001 "TWO"))      ((DO 2))      ((A_!4ZL))      ((ENDDO)  
    
    
    :
    This simple example produces the following result:

     

    "
     	     ONE 	     TWO  
    
    
    A

  • Dates - A date can be inserted as follows:

     

    "
     -    ((DATE [date_expression] [date_format]))  
    
    
    
    Example:

     

    "
     +    ((DATE TODAY "DD/NN/YY"))  or ((DATE))  
    
    
    H
    The Date expression can be a variable name or a string constant J that follows the rules for either absolute or delta time expressions. )
    Frequently used data formats are:

     

    "
        "DD/NN/YY"  1/10/03 &   "DD-MMMMMMMMM-YYYY" 1-October-2003 '   "MMMMMMMMMBDD,YYYY" October 1, 2003    "WWWWWWWWWW"  Wednesday"    "TTTTTTTT"  12:04:45 &   "WWWWWWWWWWBTTTTT" Wednesday 12:04  
    
    
    I
    The following table is the full list of date strings that may be inserted. & &                                                                                      
    Date String Description
     A E Each A is replaced by an alphabetic character from the field's 9 contents. All others are replaced with an asterisk.
     B ; The letter B is replaced by a blank at that position.
     D M Each D is replaced by the corresponding digit of the day of the month.  DD is recommended.
     E M Each E is replaced by the corresponding digit of the day of the month.  Includes leading blanks.
     F M Each F is replaced by the corresponding digit of the day of the month.  Includes leading zeros.
     J L Each J is replaced by the corresponding digit of the Julian date. JJJ  is recommended.
     L J A L placed at the left of an edit string will cause the field to be  left justified.
     M H Each M is replaced by the corresponding letter of the name of the H month. An edit string of M(9) prints the entire name of the month.
     N F Each N is replaced by a digit of the number of the month. NN is  recommended.
     O M Each O is replaced by a digit of the number of the month. Skip leading blanks.
     Q J Each Q is replaced by a digit of the number of the month. Including  leading zeros.
     P  P for PM. Nothing for AM.
     U & Time of day using 12 hour clock.
     Y K Each Y is replaced by the corresponding digit of numeric year. YY or  YYYY is recommended.
     T N Each T is replaced by a character of the time. The time is displayed as  HH:MM:SS.DD.
     W N Each W is replaced by the corresponding letter from the name of the day 7 of the week. An edit W(9) prints the entire name.
     X M Each X is replaced by one character from the SYS$ASCTIM representation  of the date
     , 0 A comma will be inserted at that position.
     . 1 A period will be inserted at that position.
     - . A dash will be inserted at that position
     / 0 A slash will be inserted at that position.
    I

  • Includes - Input can be redirected to another job  using the following syntax:

    


     o V T Y  
    PreviousNextContentsIndex