Search found 27 matches

by pp
Thu Oct 08, 2009 7:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Combining 2 records
Replies: 4
Views: 2032

Combining 2 records

Can we combine 2 separate records coming out of source database or input and write only 1 record to the output database?
by pp
Mon Nov 12, 2007 1:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Stage
Replies: 8
Views: 3693

Are you expecting to see 1 record as output? If you are using a full outer join with 2 different key values (123 and 129) I would imagine you would get 2 output records - they don't join, so you couldn't get them on the same record. What exactly are you trying to achieve? How are 123 and 129 suppos...
by pp
Mon Nov 12, 2007 9:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Stage
Replies: 8
Views: 3693

ray.wurlod wrote:If num_rec is your join key you will NEVER see 000129 in a left outer join. In a left outer join you will only see matching key values (000123) or NULL.
This is the definition of a left outer ...
I am using a full outer join.
by pp
Fri Nov 09, 2007 10:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Stage
Replies: 8
Views: 3693

Join Stage

I have 2 inputs A and B which go through a join component. Input A Column Name : num_rec Data : 000123 Input B Column Name : num_rec Data : 000129 In my Join Component, my key is num_rec and I have specified an outer join type because in the output I want to see data from both the files. But I canno...
by pp
Mon Nov 05, 2007 10:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Suppress leading zero's
Replies: 2
Views: 1656

Suppress leading zero's

Is there function in the transformer by which we can suppress leading zero's?
E.g. I have a field containing the following data:
0000012345
and I would like the output to show up as
12345 only.

Thank you.
by pp
Tue Oct 23, 2007 9:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date
Replies: 4
Views: 2315

I have an input file name of which the date is a part. An example file name is: abc102307 (102307 which is todays date.) I know that we have date functions which we can use but that would be in the transformer. I would like to get the current date incorporated as a part of the filename before any pr...
by pp
Tue Oct 23, 2007 1:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date
Replies: 4
Views: 2315

Date

Is there an environment variable or any other way where we can get the current date as a parameter?
by pp
Fri Jun 22, 2007 2:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformer
Replies: 4
Views: 2058

I want to be able to use a particular field in a condition within a transformer without hardcoding the field name in the transformer.
How can I achieve this?

Thanks
by pp
Fri Jun 22, 2007 12:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformer
Replies: 4
Views: 2058

Transformer

I have a job where RCP is enabled thereby all columns are propagated dynamically. The column names change depending upon the data. How can I specify a condition in the transformer by not explicitly specifying the column name that is has to operate on? Can we specify an input column as a stage variab...
by pp
Mon Jun 11, 2007 3:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join
Replies: 3
Views: 2063

Or even nvl.
by pp
Mon Jun 11, 2007 2:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join
Replies: 3
Views: 2063

In sql I might have to use decode(if then else) statements to achieve this.
How can I do the same in Datastage as Transformer dosen't support 2 inputs?
Thanks.
by pp
Thu Jun 07, 2007 3:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join
Replies: 3
Views: 2063

Join

Is there any way we can perform a join operation with a condition in the join stage? I have 2 tables which are going into a Join component. Now what I want is that if a particular record in Table A has a null value then I want to get that value from Table B and vice verca. How can I achieve this? Th...
by pp
Fri May 18, 2007 2:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Stage
Replies: 8
Views: 3805

yes I have one field as key.
by pp
Fri May 18, 2007 1:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Stage
Replies: 8
Views: 3805

Join Stage

I have 2 inputs say file1 and file2 to a join stage. Both the inputs have 6 fields. Now the output should contain 3 fields from the file 1 and 3 fields from the file 2. Fields in File 1 and 2 name address city state phone email Now in my output I would like to see name, address,city from file 1 and ...
by pp
Wed Apr 18, 2007 3:30 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: data problems
Replies: 4
Views: 2768

I tried clicking on "this" but it takes me to a "Page Not Found".

Where should I look ?