Page 1 of 1

Transformation rule

Posted: Sun Oct 08, 2006 11:48 pm
by kiran kumar dasari
I have text file like

Input
-----
110#1101#1201#101#103
115#113#409#10543#
114
116#121#230#112
301#112
314#551#
123#154#121#183#1209

output
------
110
1101
1201
101
103
115
113
409
10543
114
116
121
230
112
301
112
314
551
123
154
121
183
1209


can any one help me, how to get these results through datastage parllel jobs


Thanks in advance

Kiran

Re: Transformation rule

Posted: Sun Oct 08, 2006 11:59 pm
by madhukar
Replace # with \n

Re: Transformation rule

Posted: Mon Oct 09, 2006 1:22 am
by kiran kumar dasari
madhukar thanks for reply.
can u explain clearly.

madhukar wrote:Replace # with \n

Posted: Mon Oct 09, 2006 1:54 am
by ArndW
A single transform, declare your input as a single column and then do a CONVERT('#',CHAR(10),In.Column) and write it to a sequential file. This will convert each '#' character to a \n on output.