I have a simple job design as follows:
Code: Select all
Sequential file Stage ----> Xfmr -----> DB2 table
Sequential.FirstDate ---> DB2table.FirstDate
Sequential.FirstDate is of Varchar(8) datatype and is of the format yyyymmdd(20050914).
DB2table.FirstDate is of the Date datatype.
How would I convert the incoming varchar datatype to the target DB2 date datatype in the transformer?
Is it as simple as :
Code: Select all
StringToDate(Sequential.FirstDate,"%yyyy%mm%dd")
But when I tried the above, I get the following error:
Code: Select all
APT_CombinedOperatorController(0),0: Invalid character(s) ([x2E73]) found converting Unicode string (code point(s): 55555[x0000][x0000][x2E73][x0000][x5041]) to codepage windows-1252, substituting.
FYI, NLS is enabled. Has that got to do something? How do I proceed? Any suggesstions/guidance/inputs greatly appreciated.
Whale.