HELPLIB.HLB  —  RMU72  rrd_file_syntax, Date-Time Syntax
    The date-time syntax in .rrd files generated by the RMU
    Unload command with the Record_Definition=(File=file) command
    is compatible with the date-time syntax support of Oracle
    CDD/Repository V6.1 and later versions.

    The date-time data type has the following syntax in the .rrd
    file.

  (B)0date-time-types =                        
                                                
  qqwq> DATE qwqqqqqqqqqqwqqqqqqqqqqqqqqqqqwqq> 
    x         tq> ANSI  qu                 x    
    x         mq> VMS qqqj                 x    
    tq> TIME qqq> scale-clause qqqqqqqqqqqqu
    tq> TIMESTAMP qq> scale-clause qqqqqqqqu
    mq> INTERVAL qqq> interval-qualifier qqj    
                                                

  (B)0interval-qualifier =                                      
                                                            
  qqwq> YEAR qqq> numeric-size-clause qwqqqqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqqqqqqwq>
    x                                  mq> TO MONTH qj                         x
    tq> MONTH qq> numeric-size-clause qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
    tq> DAY qqqq> numeric-size-clause qwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwu
    x                                  mq> TO qwq> HOUR qqqqqqqqqqqqqqqqqqqqqqux
    x                                          tq> MINUTE qqqqqqqqqqqqqqqqqqqqux
    x                                          mq> SECOND q> scale-clause qqqqjx
    tq> HOUR qqq> numeric-size-clause qwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqu
    x                                  mq> TO qwq> MINUTE qqqqqqqqqqqqqqqqqqqu x  
    x                                          mq> SECOND q> scale-clause qqqj x
    tq> MINUTE q> numeric-size-clause qwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqu  
    x                                  mq> TO SECOND  qqq> scale-clause qqqqj  x  
    mq> SECOND q> seconds-clause qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj  

  (B)0scale-clause =                          
                                            
  qqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqqqqqqq
    mq> SCALE <numeric-literal>  qqj        
                                            

  (B)0numeric-size-clause =             
                                    
  qqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqqq>  
    mqwqqqqqqqqqqqqqwqqqqqqq> <numeric-literal>  qqk x 
      mq> SIZE IS qqj                              x x
    lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x
    mqwqqqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
      mq> DIGITS qqj

  (B)0seconds-clause =                             
                                                
  qqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqqqq> 
    mqwqqqqqqqqqqqqqwqqqqqqqqqqqq> <numeric-literal-1> qqqqqqqk  x           
      mqq> SIZE IS qj                                         x  x
       lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj  x
       mqwqqqqqqqqqqqqqwqqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqqqj
         mq> DIGITS  qqj  mq> SCALE <numeric-literal-2> qqqqj
                                               

    Note that SCALE values must be between 0 and -2 and that SIZE IS
    values must be between 2 and 9.

    The following are examples of typical field definitions for date-
    time data types in .rrd files:

    DEFINE FIELD A DATATYPE IS DATE.
    DEFINE FIELD B DATATYPE IS DATE ANSI.
    DEFINE FIELD C DATATYPE IS INTERVAL DAY SIZE IS 2 DIGITS.
    DEFINE FIELD D DATATYPE IS INTERVAL DAY SIZE IS 2 DIGITS TO HOUR.
    DEFINE FIELD E DATATYPE IS INTERVAL DAY SIZE IS 2 DIGITS TO
     SECOND SCALE -2.
    DEFINE FIELD F DATATYPE IS INTERVAL HOUR SIZE IS 4 DIGITS.
    DEFINE FIELD G DATATYPE IS INTERVAL HOUR SIZE IS 2 DIGITS TO MINUTE.
    DEFINE FIELD H DATATYPE IS INTERVAL MINUTE SIZE IS 2 DIGITS TO
     SECOND SCALE -2.
    DEFINE FIELD I DATATYPE IS INTERVAL SECOND SIZE IS 2 DIGITS SCALE -2.
    DEFINE FIELD J DATATYPE IS TIME.
    DEFINE FIELD K DATATYPE IS TIME SCALE -1.
    DEFINE FIELD L DATATYPE IS TIMESTAMP SCALE -2.
    DEFINE FIELD M DATATYPE IS INTERVAL YEAR SIZE IS 3 DIGITS TO MONTH.
Close Help