Search found 57 matches

by deepa.y
Tue Mar 06, 2012 6:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to read the data from URL
Replies: 2
Views: 1164

Need to read the data from URL

Hi,
I need to read the data from an URL.
If i click on URL,it displays a pipe delimeted data as shown below.

Name|Place|State
xx|yyyy|zz
kk|fff|ee
Please suggest me what stage can i use to read this data?
by deepa.y
Wed Feb 22, 2012 1:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

Hi Kandy, I removed the funnel stage and placed join stage. I performed inner join based on the key generated and passes the elements and values on two columns Next in the transformer stage i inserted newline character after elements. So now i'm getting them in proper order :D . Thanks for your valu...
by deepa.y
Tue Feb 21, 2012 11:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

I tried funnel stage by setting different properties.But the data is received as the values first and then the elementsi.e data from second link first and then the first link.

2,3
p,q

2,3,3
x,y,z
by deepa.y
Tue Feb 21, 2012 5:55 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

Are you specific about the order of output rows? Hi Kandy, I resolved that issue by placing previouskey stage variable after the concatenation stage variable. Now i need to funnel out the data like 1st record from 1st transformer containing elements and 1st record from other transformer containing ...
by deepa.y
Tue Feb 21, 2012 1:39 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

Thanks Kandy for your valuable time :) .I will try to find out and let you know.
by deepa.y
Tue Feb 21, 2012 1:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

Ya i also tried setting sequential mode in second transformer and it is giving the output as
p1
p,q1
p,q,x2
p,q,x,y2
p,q,x,y,z2
by deepa.y
Tue Feb 21, 2012 12:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

I am exactlly implementing the same logic as you mentioned. As i generated the rownumber in first transformer by setting execution mode as sequential,when iam further passing col1 and rownumber to another transformer,the data is getting partitioned and the output of concatenation is like q,1 q,y,2 p...
by deepa.y
Tue Feb 21, 2012 12:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

My input data will be from a transformer stage where i will be getting xml files,each xml containing different elements. so,i am extracting the elements from the xmls under two columns.one column containing element name and other containing the values. if xml1: <xml><p>2</p><q>3</q> xml2: <xml><x>2<...
by deepa.y
Mon Feb 20, 2012 4:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

Yes my issue will be resolved if pivot_column have different values after concatenation.
a 1
a,b 1
a,b,c 1

x 2
x,y 2
x,y,z 2
by deepa.y
Mon Feb 20, 2012 2:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

Just assign 1 to pivot column and process in transformer stage. When done, sort by your new (concatenated) column in desc order and take the first record by using the appropriate stage ;) Hi kandy, But the earlier approach is giving me the problem when readng more than 2 files. During concatination...
by deepa.y
Mon Feb 20, 2012 1:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

Remove unwanted rows by adding another stage ;) Hi Kandy, Instead of dummy column pivot,i took a column called row_num and assigned it to @inrownum system variable. so that data from each file can have a unique key i.e file1: ,a 1 ,a,b 1 ,a,b,c 1 file2: ,x 2 ,x,y 2 ,x,y,z 2 so that i can arrange th...
by deepa.y
Fri Feb 17, 2012 7:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to Untar the tar files
Replies: 13
Views: 5188

qt_ky wrote:I don't see any tar -O option on my flavor of UNIX... What does -O do?
-O is for standard output
by deepa.y
Fri Feb 17, 2012 4:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

deepa.y wrote:concat=if currentkey=nextkey then concat:lnk_input.col1 else ''
Sorry there is mistake in my previous reply.
concat=if currentkey=nextkey then concat:","
:lnk_input.col1 else ''
by deepa.y
Fri Feb 17, 2012 3:59 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

Hi, I implemented the following logic I took a column pivot and assigned value 1 . Then in stage variables,i gave current key=pivot nextkey=currentkey concat=if currentkey=nextkey then concat:lnk_input.col1 else '' and it is giving me the following output. ,a ,a,b ,a,b,c--->need to read this row and...
by deepa.y
Fri Feb 17, 2012 3:31 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to convert columns to rows
Replies: 29
Views: 12252

Hi Kandy,
Could you please explain me in detail?