Parsing of the record

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
bkumar103
Participant
Posts: 214
Joined: Wed Jul 25, 2007 2:29 am
Location: Chennai

Parsing of the record

Post by bkumar103 »

Hi,
I have record in the following format

Id1:Value1
id2: value2
id3:value3

id1:value1
id2:value2
id3:value3

I have to parse these records.
Which stage i should use in data stage. If there is no stage available then what could be the workaround for this.

Thanks in advance,
Burendra
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What do you mean, specifically, by "parse"?

Only with that knowledge could we proffer cogent advice.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
BugFree
Participant
Posts: 82
Joined: Wed Dec 13, 2006 6:02 am

Post by BugFree »

Do you mean upper case to lower case? And remove spaces if any? Look at the functions Convert(), DownCase() in a transformer stage.
Ping me if I am wrong...
bkumar103
Participant
Posts: 214
Joined: Wed Jul 25, 2007 2:29 am
Location: Chennai

Post by bkumar103 »

Parsing means i want the record in the following format

id1 id2 id3
value1 value2 value3
value1 value2 value3



where id1 , id2 and id3 are the heading of the file.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

To clarify, you want to pivot rows into columns? Is that correct? The technique is called "vertical pivoting", and a search of the forum for that term will reveal a number of ways that it can be done with DataStage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply