cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Spaces in Flat file

0 Kudos

Hi,

My source is sql table and my target is Flat file(.csv),i am getting spaces in csv format(target).

How can i remove the spaces in query transform before data goes to target.

Regards,

Saikrishna

Accepted Solutions (0)

Answers (1)

Answers (1)

rajan_burad
Active Participant
0 Kudos

Hello Saikrishna,

Try to use ltrim_blanks and rterim_blanks function on that column for which you're getting blanks.

Eg: rtrim_blanks(ltrim_blanks(Table.col))

Let us know if this helps!

Thanks,

Rajan

0 Kudos

Hi Rajan,

Thanks for your reply.

It is not working,can u havr the alternate solution for this.

Regards,

Saikrishna

rajan_burad
Active Participant
0 Kudos

Hello,

There is one more solution which I can think of:

Dump the data first into a temp table and then connect other dataflow.

Use rtrim_blanks(ltrim_blanks(Table.col)) while dumping data in temp table.

In that dataflow use temp table as a source and do one to one mapping in Query transform. After this dump the data in csv file.

Let us know if this helps!

Thanks,

Rajan