Search found 26 matches

by sarathi
Wed Mar 24, 2010 9:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Two Tables from different databases in one Source Query
Replies: 1
Views: 1358

Join Two Tables from different databases in one Source Query

I have requirement to Join tables - multiple SQL Server tables with joins to ONE Oracle table with LIKE condition in ODBC Plug-in. I tried giving Oracle DB name in query and getting Invalid object name error. Query in ODBC SQLServer connection - select Asset, Tag from asset join SQLSERVER .Portfolio...
by sarathi
Sat Mar 20, 2010 9:31 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: select statement in Transformer Stage
Replies: 20
Views: 9071

I do not know why there is so much confusion on these Topic. I am trying to build source SQL that changes from run to run. It was suggested to build externally as parameter or Kim suggested. My first question is what values should i declared in parameters. Will below will be sequence of steps to res...
by sarathi
Fri Mar 19, 2010 9:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: select statement in Transformer Stage
Replies: 20
Views: 9071

I needing to pull information from a table using SQL in which uses field variable from "if-then-else" derivation. Using the % wildcards in If-then-else. SELECT A From B where A LIKE 'VARIABLE' VARIABLE= If LOCATION LIKE 'Technology Center' Then 'BACKUP ' Else 'TTCE' else If LOCATION LIKE ....
by sarathi
Fri Mar 19, 2010 6:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: select statement in Transformer Stage
Replies: 20
Views: 9071

Let me explain to you in brief.... Need to CALL SELECT ...LIKE VARIABLE IN Transformer/Applicable Stage.I declared VARIABLE as STAGE VARIABLE. Value of VARIABLE = If LOCATION LIKE 'Technology Center' Then 'BACKUP ' Else 'TTCE' else If LOCATION LIKE ......... I am using '%Technology Center%' to check...
by sarathi
Fri Mar 19, 2010 3:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: select statement in Transformer Stage
Replies: 20
Views: 9071

Hi

Sorry about mis-pronouncation.
Can it be done by Sub-routines like DSRoutines.
I am not particular that it should be done in Transformer stage.
Any type of solution for this issue will be appreciated.

Sarathi
by sarathi
Fri Mar 19, 2010 3:00 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: select statement in Transformer Stage
Replies: 20
Views: 9071

LOC = 'SELECT searchcode from LOCATIONS WHERE searchcode like ' : STAGEVARIABLE

This is not working. It's taking as string and passing...

Craig- Do u have solution for this. I appreciate your help


Sarathi
by sarathi
Fri Mar 19, 2010 11:58 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: select statement in Transformer Stage
Replies: 20
Views: 9071

Yes LOC is target field
by sarathi
Fri Mar 19, 2010 11:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: select statement in Transformer Stage
Replies: 20
Views: 9071

select statement in Transformer Stage

Can we pass StageVariable into Select statement in Transformer Stage..

Here is what i am looking to pass to LOC VARIABLE

LOC = SELECT searchcode from LOCATIONS
WHERE searchcode like STAGEVARIABLE

Any help appreciated

Sarathi
by sarathi
Thu Mar 18, 2010 3:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Route one of Duplicates based on condition
Replies: 9
Views: 5715

Below is method i followed and did not work. Am i making any mistakes here ? 1- Sorted data on Key and Status 2- In the transformer created separate two types of records using constraint 1) Status = Removed 2) Status = Implemented 3 - Duplicate state and pulled only Last record 4. Created STAGE VARI...
by sarathi
Wed Mar 17, 2010 4:03 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Route one of Duplicates based on condition
Replies: 9
Views: 5715

Thanks for reply. I have only one query which pulls data and you mentioned to go for lookup below. Does it mean LOOKUP Stage ? As i don't have Two Sources prefer Transformer Stage. - If Rem_status='Removed' and rem_status=imp_status Then Pass this record to seq stage else Reject record. Let me know ...
by sarathi
Wed Mar 17, 2010 1:57 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Route one of Duplicates based on condition
Replies: 9
Views: 5715

Do anyone had task to do this type of Logic and found solution for same.
by sarathi
Wed Mar 17, 2010 11:08 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Route one of Duplicates based on condition
Replies: 9
Views: 5715

Route one of Duplicates based on condition

I am having DTS issue where i need to Route one of Duplicate value to different file and then remove duplicates. Here is an examples of how data looks for columns Code & Status Case 1 Code Status 1DKSSK2 Removed 1DKSSK2 Removed 1DKSSK2 Removed Case 2 Code Status 1DKSSK1 Implemented 1DKSSK1 Remov...
by sarathi
Wed Mar 10, 2010 3:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: LIKE operator in IF ELSE Condition
Replies: 12
Views: 13922

If Link.Field[1,4] = 'DELL' then 'DELL' else is working.

I tried Matches 'DELL' with 'If then else' condition and it was not working.
My assumption is we need to use substring[] for IF THEN ELSE

Thanks for all :)

Sarathi
by sarathi
Wed Mar 10, 2010 11:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: LIKE operator in IF ELSE Condition
Replies: 12
Views: 13922

Thanks for comments. My task is NOT to check exact string but should work as Oracle like command - Like 'DELL%. Tried to use Index send by Kunnal but not parsing. Craig If Link.Field[1,4] condition is working but what if we have values 'DELL12' or 'Cisco32' if index("DELL", LkFrom_CMDB_Tab...
by sarathi
Wed Mar 03, 2010 6:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Merge Stage using Two Sequential Files
Replies: 9
Views: 4904

GSSR - I'm little confused as what you are saying below - Use Copy stage , Instead of writing the CSV file directly and get anither link from copy stage to Join. Now you can edit the Metadata in the links Should i use TWO Copy stages for each CSV File and then Join them. And then output of Join goes...