FTPPX Stage converting Dates to number on transfer

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
piyu
Participant
Posts: 52
Joined: Thu Jul 21, 2005 12:22 am
Location: Singapore

FTPPX Stage converting Dates to number on transfer

Post by piyu »

Any idea why the FTP PX stage would convert dates to a number format on transfer? The file on the source side is generated in Datastage and a view on UNIX shows the date formats to be correct. Any help will be appreciated.

No special FTP parameters specified.

Thanks.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What do the numbers look like? Do you regards 20110125 as a number?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
piyu
Participant
Posts: 52
Joined: Thu Jul 21, 2005 12:22 am
Location: Singapore

Post by piyu »

:) 2010-12-31 was converted to 15760
This records :
"2010-12-319331A904A1A9MIS256560111402008-11-05....."

looked like this when transferred :

"157069331A904A1A9MIS25656011140149201492092830155561555923..."
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That looks like a Julian date of some kind. Can you please provide more details about the source and how that was generated?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
piyu
Participant
Posts: 52
Joined: Thu Jul 21, 2005 12:22 am
Location: Singapore

Post by piyu »

Its a simple tab delimited file read and write to FTP stage.

I did use a workaround of converting the date to VARCHAR 10 in target. But just wanted to know why its doing that because some other similar job which runs fine with date.
sjhouse
Premium Member
Premium Member
Posts: 43
Joined: Tue Nov 02, 2004 12:11 pm
Location: Minneapolis, MN

Post by sjhouse »

i have a similar problem with a migrate 7.5 job to 8.5;

the file is tab delimited but when its ftp'ed the header row has tab escape character while the data rows are tab delimited. so did you have something similar i have opened a case with IBM will update

before FTP
PMI_NO BIRTH_DATE REFERRAL_CODE

After FTP
PMI_NO009BIRTH_DATE009REFERRAL_CODE

i did not mean to hijack your thread but have seen similar behaviour with your file header row
Post Reply