Transformation rule

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
kiran kumar dasari
Participant
Posts: 2
Joined: Sat Mar 11, 2006 8:13 am
Contact:

Transformation rule

Post 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
madhukar
Participant
Posts: 86
Joined: Fri May 20, 2005 4:05 pm

Re: Transformation rule

Post by madhukar »

Replace # with \n
kiran kumar dasari
Participant
Posts: 2
Joined: Sat Mar 11, 2006 8:13 am
Contact:

Re: Transformation rule

Post by kiran kumar dasari »

madhukar thanks for reply.
can u explain clearly.

madhukar wrote:Replace # with \n
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
Post Reply