Using DTS to import a fixed width text file with julian dates. ActiveX script converts julian to datetime, but some fields are (0x20) padded. So I can have [..123],[.1123], [99123],[.....]empty. The empty field is causing me a problem - type mismatch error: '(string:" "
'.
I have read about this in many guises but I am not sure which applies to this scenario (Case, Convert, NULL, Is[NOT]Null, BCP, BULK Insert, etc). Any suggestions?
My script looks roughly like this:
If (DTSSource("Col029"
) > 0 Then --I'VE TRIED =" "
call SetJulianDate (DTSSource("Col029"
, JulianDate, Error_Code)
end if
...
call ConvertJulianToStandard (JulianDate, FromDate, Error_Code)
...
DTSDestination("DOB"
= FromDate
I have read about this in many guises but I am not sure which applies to this scenario (Case, Convert, NULL, Is[NOT]Null, BCP, BULK Insert, etc). Any suggestions?
My script looks roughly like this:
If (DTSSource("Col029"
call SetJulianDate (DTSSource("Col029"
end if
...
call ConvertJulianToStandard (JulianDate, FromDate, Error_Code)
...
DTSDestination("DOB"