To remove new line character in a field

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
meet_deb85
Premium Member
Premium Member
Posts: 132
Joined: Tue Sep 04, 2007 11:38 am
Location: NOIDA

To remove new line character in a field

Post by meet_deb85 »

I'm getting a junk new line character in 6th and 7th fieldfrom a total no of 15 fields.

due to this line splits in second line in excel.

Job is running fine and there is no problem while opening in UNIX or in Edit Plus or in TextPad, Just getting this error only while opening in Excel.

Pls help either via DS or any UNIX Command that remove that newline character from that particular field no 6 and 7.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The Transform function of "CONVERT(Char(10),'*',In.TextColumn)" will convert the <lf> to a "*" both in server and PX.
Post Reply