Search found 353 matches

by chandra.shekhar@tcs.com
Wed Apr 17, 2013 12:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Conditional Deletion
Replies: 22
Views: 7649

We normally do not create sequences here at my project :(.
I know it sucks...
by chandra.shekhar@tcs.com
Tue Apr 16, 2013 11:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Conditional Deletion
Replies: 22
Views: 7649

Hi All, Based upon the responses I got, following are the possible options for me :- 1) Create a separate job as suggested by Craig. 2) Use No Logging option as suggested by asorrell(It isn't feasible since according to our DBA that will make the table inaccessible if the job aborts during the delet...
by chandra.shekhar@tcs.com
Tue Apr 16, 2013 7:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Conditional Deletion
Replies: 22
Views: 7649

@Craig,
Thats the thing I don't want to do.
I have kept that as the last option. I was hoping if I can do something with in the same job
by chandra.shekhar@tcs.com
Tue Apr 16, 2013 12:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Conditional Deletion
Replies: 22
Views: 7649

@Craig, I tried to do the same but if I have to dump that small portion of data, I need to create a separate job for it. Cant there be something else ? @Andy Ok, I'll try it but 1 query. DELETE is a reversible process, It'll create transaction logs all the time Or there will not be any difference be...
by chandra.shekhar@tcs.com
Mon Apr 15, 2013 8:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Conditional Deletion
Replies: 22
Views: 7649

Yeah Craig, when I said "previous day's data" I meant previous business day's data. Both are same thing.
Everything is to be deleted which of previous day or older.
by chandra.shekhar@tcs.com
Mon Apr 15, 2013 7:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Conditional Deletion
Replies: 22
Views: 7649

Conditional Deletion

Hi, I have a requirement where I have to load the data daily in a table after deleting previous day's data based upon the column TRAN_DT(Transaction Date). While deleting the data I have to make sure that I delete only previous day's data only and not today's and future day's data. I have done the s...
by chandra.shekhar@tcs.com
Sun Apr 14, 2013 11:47 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Tune a query with where clause that has a function
Replies: 6
Views: 2789

Jerome, try fetching whole data from the source and then use a filter stage and give the constraints in it.
by chandra.shekhar@tcs.com
Thu Apr 04, 2013 11:56 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sql help
Replies: 6
Views: 3635

If Its DB2 then below query should work

Code: Select all

SELECT
    BOOKNBR
FROM
    (
        SELECT
            BOOKNBR,
            RANK() OVER (PARTITION BY BOOKNBR ORDER BY BOOKNBR) RNK
        FROM
            TABLENAME
        WHERE
            BOOKNBR LIKE '0%')
WHERE
    RNK <=3
by chandra.shekhar@tcs.com
Thu Apr 04, 2013 11:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Cleansing Name
Replies: 12
Views: 7079

@Priya
Yes, my solution what I have posted above and your solution are giving me the same output so I think the logic is working now.
Can you explain me when you said that we can skip null checks in 8.5 and above ?
How can we do it ?
by chandra.shekhar@tcs.com
Thu Apr 04, 2013 1:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Cleansing Name
Replies: 12
Views: 7079

@Priya I'll try it and let you know whats my result. For the time being I'll tell you what I have done. I have used 1 stage variable svName --> Convert(Convert('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','',NullToEmpty(DSLink2.NAME)),'',NullToEmpty(DSLink2.NAME)) Then I have used a constr...
by chandra.shekhar@tcs.com
Wed Apr 03, 2013 3:07 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Cleansing Name
Replies: 12
Views: 7079

@Rakesh,
I know that Qualitystage is better tool for this requirement, but we have a constraint of doing it by Datastage only.
by chandra.shekhar@tcs.com
Tue Apr 02, 2013 8:04 am
Forum: General
Topic: How Long Does it Take to learn Datastage for ETL project
Replies: 7
Views: 6223

As Ray said, there's no straight forward answer to that. I think it takes atleast 4-5 months to have good knowledge about datastage. Obviously practical knowledge is a must. It also depends upon the grasping power of the person. I have 4 years exp in datastage and I still consider myself in the lear...
by chandra.shekhar@tcs.com
Tue Apr 02, 2013 7:55 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Cleansing Name
Replies: 12
Views: 7079

Cleansing Name

Hi All, We have received a requirement from our client where we have to cleanse the Customer Name Field through Datastage. The Name(VARCHAR(120)) should be considered as Invalid and to be reported in the target if 1) It contains only numbers OR 2) It contains only junk values(or special characters) ...
by chandra.shekhar@tcs.com
Tue Apr 02, 2013 12:44 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: logic required
Replies: 20
Views: 7591

@Sankar,
I dont think that will work, for the 4th record GROUP should have "3".
In your logic the counter thing is missing, so you have to use one more variable for incrementing the counter.