I am trying to load onto Netezza a file from a table in an Oracle database, the file contains two separate date formats - one field has the format DD-MON-YY and the second field has the format DD-MON-YYYY hh24:MI:SS, is there any with in NZLOAD to cater for two different date formats within a file
Thanks rob..
If your file is fixed-length, you can use zones
However, if its field delimited, you can use some of the preprocessing tools like sed to convert all the date / timestamp to one standard format, before piping the output to
nzload.for ex.,
Lets convert the date field to same format
sed expression is pretty simple here, let's break it down
also in
nzloadwe have specified the format of date and its delimiter.Now we'll have to modify the regular expression depending upon different date formats and what they are getting converted to, this may not be an universal solution.