Search found 34 matches

by yugee
Tue Jul 22, 2014 4:19 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Scenario: Identify duplicated in a column
Replies: 6
Views: 5094

Simple, but works as required. Transformer: COL1 --> is your input with two fields separated by ',' Declare Below Stage Variables: svIndex - Index(DSLink1.COL1,',',1) This will find the position of ',' svLength - Len(DSLink1.COL1) this is to find the length of your column svField1 - Left(DSLink1.COL...
by yugee
Thu Jun 26, 2014 12:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Replace String without Using EReplace Function
Replies: 1
Views: 3747

Replace String without Using EReplace Function

Hi, Thought of sharing a solution I have built to replace a sub-string in the string (similar to EReplace), but it is not a function. (it will work only for the single occurance - I will post the solution for multiple occurance as well) Input: I have ID and DESCRIPTION fields and Description has inv...
by yugee
Wed Jun 25, 2014 12:19 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IN logic in Datastage
Replies: 6
Views: 3016

If these values are dynamic, better use lookup. Keep these values in either a file or table (depends on your access) then you won't have hassle of changing the datastage job every time these values change.
by yugee
Mon Jun 16, 2014 12:57 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: ODBC - Transaction Handling
Replies: 4
Views: 2865

If you need to delete all the records only when all the records are inserted then:
First insert all the records into table2 (create this temp table as before sql statement)
have the after sql statement to truncate table1 and rename table2 to table1
by yugee
Mon Jun 16, 2014 12:50 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: SQL error "-246" in DB2 Insert
Replies: 3
Views: 2713

From the error message, it seems the multi-row fetch/insert is above the limit allowed. As per the below link, 32767 rows are allowed. http://www-01.ibm.com/support/knowledgecenter/?lang=en#!/SSEPEK_9.0.0/com.ibm.db2z9.doc.codes/src/tpc/n246.dita Try loading 32760 rows and see if you can load then t...
by yugee
Mon Jun 02, 2014 12:59 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Select and Delete in job
Replies: 1
Views: 1242

Since I can not use the Oracle reject as reference link to Lookup, I have used a Copy stage. Though the input link to Copy stage is failed, output produced zero records..Is there any way to avoid this..
by yugee
Mon Jun 02, 2014 12:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Select and Delete in job
Replies: 1
Views: 1242

Oracle Select and Delete in job

I have a job which extract the records from Oracle table and inserts into another oracle table. All the records successfully inserted should be deleted from the input table. For this I have below design: OC Extract Copy ---> one output is going to OC_insert and another is for Lookup OC Insert --> I ...
by yugee
Wed Apr 23, 2014 4:06 pm
Forum: General
Topic: How can I add a pallette group?
Replies: 1
Views: 1559

Right Click on the Palette bar, then Customize Palette, then right click on Current Palette groups, Select Add top-level group. It will create a new group. You can drag and drop required stages into this.
by yugee
Wed Apr 23, 2014 3:59 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to read whole XML file as a string and in DataStage.
Replies: 7
Views: 5769

Try declaring your input column as SQLtype - LongVarChar, Extented - Unicode and don't mention the length
by yugee
Tue Apr 22, 2014 4:03 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Performance issue in Oracle connector with multiple links
Replies: 1
Views: 1980

This article from IBM explains Oracle Connector (you can read specifically - Parallelism and partitioning part for your issue) very usefull and in-detail explanation of different aspects.

http://www.ibm.com/developerworks/data/ ... onnector1/
by yugee
Tue Apr 22, 2014 1:46 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: xsd import validation error
Replies: 5
Views: 2797

from the error message, it looks like the validation is not able to find the HeaderMsgType and ProviderType. If these are two external references (meaning, if your original xsd is referring to another xsd) make sure you import these xsds as well. Below is the example: --This is just an element <xsd:...
by yugee
Tue Apr 22, 2014 12:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: adding zero into input field's data
Replies: 6
Views: 2395

You can try below:
InputField:Str('0', 4 - len(InputField))

InputField -- is your input field
4 - length if your output column after padding the leading zeroes

--this will not work if you have declared output field as numeric.
by yugee
Tue Mar 18, 2014 9:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup stage outputs duplicate rows
Replies: 3
Views: 4877

Though your reference link has duplicates, unless you specify "multiple rows returned from link" for the reference link, you should not get the duplicates. If your main link has duplicates, then it is possible to get the duplicates.
by yugee
Wed Mar 05, 2014 3:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Tables with many columns
Replies: 2
Views: 1408

Oracle Tables with many columns

Hi, Sorry if this is a repetitive post, I have searched and couldn't find any thing. I have a situation where I am extracting data from Oracle table with more than 200 columns and loading into an another Oracle table with same structure. I need to select all the columns. I have to do some transforma...
by yugee
Mon Mar 03, 2014 1:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Capture Only Not matching rows
Replies: 4
Views: 1895

Thanks Craig..But in my case there are 90% records matching and only 10% of them are not matching (average volume in the input is around 100K). I can have a filter stage to get only the null value records, but in this case I will be checked the null value for an extrat 90% of the records. This job i...