Page 1 of 1

Parsing of the record

Posted: Tue Apr 01, 2008 12:50 am
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

Posted: Tue Apr 01, 2008 1:03 am
by ray.wurlod
What do you mean, specifically, by "parse"?

Only with that knowledge could we proffer cogent advice.

Posted: Tue Apr 01, 2008 1:03 am
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.

Posted: Tue Apr 01, 2008 5:27 am
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.

Posted: Tue Apr 01, 2008 6:11 am
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.