Page 1 of 1

How to add Carriage return in the swift file

Posted: Thu May 25, 2017 4:10 am
by pkll
Hi All,

Can you please explain how to Add Carriage return in the swift file in data stage?

Thanks for your Advanced Help :D :D

Posted: Thu May 25, 2017 6:45 am
by chulett
May need more information but you would use the CHAR() function to represent an unprintable character. So for the carriage return you would use CHAR(10) wherever you needed to "add" it.

Posted: Thu May 25, 2017 7:50 pm
by ray.wurlod
How are you writing to the file? The Sequential File stage will ordinarily add a line terminator at the end of each line automatically.