Search found 109 matches

by Havoc
Wed Oct 24, 2007 12:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup Stage
Replies: 3
Views: 2226

Re: Lookup Stage

Hi All, Is there any point in keeping Lookup Failure to Continue if Lookup Condition has been set to Fail. The latter condition will always abort the job if the lookup fails.Please enlighten me. Thanks in advance. How can you set the Lookup Stage to Fail and Continue at the same time? :roll:
by Havoc
Thu Oct 18, 2007 1:44 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Equivalent of system variable @INROWNUM
Replies: 2
Views: 1111

The same system variable exists in Parallel. But each node has it's own @INROWNUM, so in order to get a unique number you will have to use the variable for the partition number as well (I'm not at a DS client now so cannot check what that variable name is, but you can find it in the drop-down menu)...
by Havoc
Wed Oct 10, 2007 8:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: <UDBDB2STAGE>,0: DB2 Load Binary Error.
Replies: 4
Views: 2146

Re: <UDBDB2STAGE>,0: DB2 Load Binary Error.

<UDBDB2STAGE>,0: DB2 Load Binary Error. <UDBDB2STAGE>,0: SQLCODE = -27959; SQLSTATE= <DSScratchpath>/ordb2195388278623545_ <UDBDB2STAGE>,0: SQL27959N The partitioned database configuration option "PARTITIONED DB CONFIG" is invalid. Reason code = "1". <UDBDB2STAGE>,0: Failed open...
by Havoc
Wed Oct 10, 2007 1:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to write condition for stopping the sequences
Replies: 3
Views: 1724

Re: How to write condition for stopping the sequences

How to write condition for stopping the sequences.. for ex:- suppose there are three jobs activities is there in sequence Like this type A ---> B ----> C i want to run A and C .. Not B then how to write trigger condition... Put a nested condition activity stage after the job A... put a trigger for ...
by Havoc
Wed Oct 10, 2007 1:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to load current table records to historical table in tgt
Replies: 5
Views: 2076

Re: How to load current table records to historical table in

Hi i have a job designed for scd2,in the target i have 2 tables historical and current table. My question is how to move records from current table to histotrical table my client wanted to do this weekly once. Help would be appriciated a lot. what is your target table structure? What are the column...
by Havoc
Fri Oct 05, 2007 5:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to create sequence number in Datastage px
Replies: 2
Views: 3001

Re: How to create sequence number in Datastage px

Hi we are using ODBC as target stage, and there is a column sn_key in the target ,it has values starting from 1 to sequence ..... That extra column is genarated and values pased in the target only. How to achive that ? What is your database? You can either make that column a sequence column in your...
by Havoc
Thu Oct 04, 2007 1:32 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Combining 2 unidentical values of a column
Replies: 1
Views: 774

Re: Combining 2 unidentical values of a column

I have 2 columns from 2 separate sources. 1. Row count from aggr stage. 2. Process_id from surrogate key gen stage. At any given point of time there would be only 1 value coming in from each of these stages. I need to combine these 2 into one row output. How could I achieve that? I tried lookup but...
by Havoc
Thu Oct 04, 2007 12:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: StageVariables:Null handling
Replies: 1
Views: 874

Re: StageVariables:Null handling

all, i'm using two stagevariables as mentioned below. Stagvar1: If ((IsNotNull(Column1)) or (IsNotNull(Column2)) Then '0' Else '-100' Stagvar2: If (IsNull(Column3)) Then '-Z' Else (If (IsValid('Date', StringToDate(Column3,"%yyyy%mm%dd"))) Then '0' Else '-200') stagvar3: If stagvar1<>0 The...
by Havoc
Mon Oct 01, 2007 2:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Explicit Sort vs Link Sort
Replies: 4
Views: 2031

It depends. You can tune memory consumption in the Sort stage explicitly for that stage. And "performance" needs to be defined. ... Thanks for the reply Ray.. Performance can be defined as : 1) Better throughput from the join stage or improved throughput from upstream stages/operators 2) ...
by Havoc
Mon Oct 01, 2007 2:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: datastage
Replies: 13
Views: 26757

Lets say input column is A

use the following in your derivation or stage variable

Set first Name To The following derivation:

A[1,Index(A,' ',1)]

Set Last Name to the following Derivation:

A[Index(A,' ',1)+1,Len(A)-Index(A,' ',1)]

Hope this helps...
by Havoc
Mon Oct 01, 2007 6:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Explicit Sort vs Link Sort
Replies: 4
Views: 2031

Sort stage is more flexible about using memory - you even have the ability to specify the per-node memory usage that the stage takes. Also, with an explicit Sort stage, it may be that your job no lon ... Does using an explicit sort stage yield better performance as compared to a Link Sort? How does...
by Havoc
Fri Sep 28, 2007 12:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Explicit Sort vs Link Sort
Replies: 4
Views: 2031

Explicit Sort vs Link Sort

There is a job which does a left outer join (using Join Stage) between two links : Link1 - 30 million rows Link2 - 10 million rows (Right Link) When i use the explicit link sort (hash,sort) on both these links on my join keys , the job aborts after running for some time with this fatal error: buffer...
by Havoc
Tue Sep 25, 2007 11:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage Question - Multiple conversions
Replies: 7
Views: 3687

There might be just 1 function but below is the logic that should work within a TRANSFORMER stage Let's say data comes as "20070112.0" (1) Step1: Get everything before decimal (2) Step2: Data is now in YYYY-MM-DD format. So use StringtoDate() How to do that:- (1) Find position of decimal ...
by Havoc
Tue Sep 25, 2007 11:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage Question - Multiple conversions
Replies: 7
Views: 3687

It is documented that two adjacent Modify stages is not supported. Place a Copy stage between them if you need two. ... Yes, that's right ... Josh, yes there is no scale specified but as you mentioned it does come in as 20070112.0 Explanation of the problem's given below when there is a string_from...
by Havoc
Tue Sep 25, 2007 3:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage Question - Multiple conversions
Replies: 7
Views: 3687

Modify Stage Question - Multiple conversions

Hi, One of the tables has an input column of Decimal( 8 ) which contains values: 20070112 20060513 which are in the yyyymmdd format I was thinking of using a modify stage to do this conversion but how can i write a single specification with two datatype conversions. I know you cant write two specifi...