last ;(semicolon) missing after FTP

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
kusuma
Participant
Posts: 13
Joined: Fri Sep 05, 2003 7:36 am
Location: India

last ;(semicolon) missing after FTP

Post by kusuma »

Hi all,

I have a sequentional file that looks like
a1;b1;c1;....m1;n1;;
a2;b2;c2;....m2;n2;;
a3;b3;c3;....m3;n3;;
.
.

the last field is empty

I have a ftp job that ftpee's this file to another server, but the output is like
a1;b1;c1;....m1;n1;
a2;b2;c2;....m2;n2;
a3;b3;c3;....m3;n3;
.
.

The last semicolon is missing. Can somebody help me resolve this problem.

Thanks,
Kusuma
kusuma
Participant
Posts: 13
Joined: Fri Sep 05, 2003 7:36 am
Location: India

Post by kusuma »

It works if I treat the whole row as a single column and transfer the file. But if some one has an alternate/better solution, please share :)

Thanks,
Kusuma
kris_daredevil
Participant
Posts: 20
Joined: Mon Dec 05, 2005 8:07 pm
Contact:

Post by kris_daredevil »

check the properties tab in the FTP stage look for column delimiter,escape charater
KRIS
kusuma
Participant
Posts: 13
Joined: Fri Sep 05, 2003 7:36 am
Location: India

Post by kusuma »

kris_daredevil wrote:check the properties tab in the FTP stage look for column delimiter,escape charater
Hi KRIS,

Right now, my Column Delimiter is ;(semicolon) and the Escape Character is \(default). But it is not working with this. Am I doing somthing wrong?

Thanks,
Kusuma
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

kusuma wrote:It works if I treat the whole row as a single column and transfer the file.
That's how I generally do it - and seems to me the best solution for preserving the struture of the file. The FTP stage is metadata driven and perfectly happy to massage data or change delimiters or do all kinds of other thing to the file while it is 'in flight'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply