Page 2 of 2

Posted: Fri May 04, 2007 7:29 am
by DSguru2B
O ok. Always love your "to the point" answers :D
There has to be an explanation for this then. Thats the best that I could come up with.

Posted: Fri May 04, 2007 7:33 am
by chulett
I'd have to see the actual job and have access to the source data to know what was going on. I just know it ain't that. :wink:

Posted: Fri May 04, 2007 8:15 am
by sri75
Thanks for all of your inputs and suggestions.

finally I stick with this derivation
Iconv(DSLink71.HIRED, "DMDY").

I have another question , in .csv file the values of the column is '11/3/2007' in this format.but when reading from sequential file it is reading only last 2 digits of the year.I want to read all 4 digits.Can you plesae let me know where to make changes in seq file to get full year

Thanks

Posted: Fri May 04, 2007 8:18 am
by chulett
What is your datatype in the Sequential file stage? Use a Varchar if you don't want the reader to muck with the values.

Posted: Fri May 04, 2007 8:20 am
by sri75
HI thanks for all of your inputs and suggestions

I stick with this derivation

Iconv(DSLink71.HIRED, "DMDY[2,2,4]")

I have another question,in .csv file the format of the column looks like this
'11/03/2007', but when I am reading from seq file, it is showing only 2 digits o fthe year.Can you please tell me what needs to be done on seq file side to get all 4 digits


Thanks

Posted: Fri May 04, 2007 8:22 am
by sri75
sorry, submitted 2 times

Posted: Fri May 04, 2007 8:23 am
by sri75
sorry, submitted 2 times

Posted: Fri May 04, 2007 8:25 am
by sri75
changed to varchar, still it is showing 2 digits

Posted: Fri May 04, 2007 8:27 am
by DSguru2B
Is it really showing two digits or the display of that particular column is set to 8 instead of 10?

Posted: Fri May 04, 2007 9:05 am
by sri75
something goofy happened, when I moved file from windows to Unix.
I copied the file again to unix ,now it is showing 4 digits