Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Sun, 10 Feb 2013 @ 10:25:57 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: Julian date issue
From:   Dave Wellman


I think what is happening here is that the CenturyBreak value in DBSControl is being used to determine if the date value is 19xx or 20xx. Check the "utilities volume 1, a - k" for details of DBSControl and CenturyBreak.

If you can't change that control value then assuming that all of your dates are now 20xx you could simply concatenate '20' to the front of the date and change the format code, something like:

     SEL  SUBSTR(cld.sourcecol ,3,5) AS xyz,
     '20'||xyz (DATE,FORMAT'yyyyddd') AS bb,
     FROM ProdDb.source_tbl  cld



Ward Analytics Ltd - Information in motion (www.ward-analytics.com)

  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 24 Jul 2020