Search found 53125 matches

by ray.wurlod
Sat Jun 09, 2007 6:52 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to get DISTINCT (SAL)
Replies: 5
Views: 1077

You can use an ODBC stage (driver for text files). You can use a Hashed File stage to remove the duplicates, as Craig suggested. You can use stage variables in a Transformer stage, but will need to have the data sorted on the SAL field, as Craig also suggested. You can achieve that via a Filter comm...
by ray.wurlod
Sat Jun 09, 2007 6:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup condition -- Is there an alternative way to handle
Replies: 6
Views: 1522

You can check the condition in the "rules" part of the Lookup stage. If the lookup fails there are four possibilities; Continue, Drop, Fail or Reject. If the condition to undertake the lookup in the first place is not met, the same four possibilities obtain.
by ray.wurlod
Sat Jun 09, 2007 6:46 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage 8.0 slow compile
Replies: 2
Views: 1872

Are your Information Server (repository database), WebSphere Application Server and DataStage Server on the one machine or separate machines? If the latter, you're now doing stuff over the network that you used to do locally, which might explain some or all of the increased time. In addition, the re...
by ray.wurlod
Sat Jun 09, 2007 6:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reporting Discarded records in a flat file
Replies: 11
Views: 3184

The record is discarded in the read stage, so the transform stage would never see it. That's not entirely correct in a server job. If the "contains line terminators" property is set, the line can still be read "successfully" if that field contains line terminators. Methinks you've been too long in ...
by ray.wurlod
Sat Jun 09, 2007 6:36 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to add one year to a given date
Replies: 13
Views: 3303

Adding one to the year portion always works unless the starting date is Feb 29, in which case you also need to subtract one from the day number. Or you could download a function from here where you will find both AddYears (to date) and AddYearsToTimestamp functions among others. Each has its own doc...
by ray.wurlod
Sat Jun 09, 2007 6:33 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Is there a better way to handle nulls ???
Replies: 9
Views: 1869

Could you identify the rotten apples in a barrel without inspecting every one?
by ray.wurlod
Sat Jun 09, 2007 6:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: one to many relationship in joins
Replies: 8
Views: 2041

Then use a left outer join.
by ray.wurlod
Sat Jun 09, 2007 6:28 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to improve performance of job(having one insert and one
Replies: 6
Views: 1901

Re: How to improve performance of job(having one insert and

pagerakesh wrote:this job takes only 10 min in one server but takes 12 hrs in other server..

What's different between the servers?
by ray.wurlod
Sat Jun 09, 2007 6:27 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reporting Discarded records in a flat file
Replies: 11
Views: 3184

Welcome aboard. Is the line terminator legitimately in the data? If so, there is a "contains line terminator" rule that will allow DataStage to handle the field gracefully when reading. Downstream a Transformer stage can use the Index() function to determine whether there is a line terminator in the...
by ray.wurlod
Sat Jun 09, 2007 6:24 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Transformer with a flow condition
Replies: 6
Views: 1547

Then you can mark this thread as Resolved.
by ray.wurlod
Fri Jun 08, 2007 7:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: one to many relationship in joins
Replies: 8
Views: 2041

No. All you need is an inner join. Nothing else is required. Inner join will give the correct number of rows.

Left outer join will give additional rows with only NULLs from the right input. This is not what you require, according to the specification you have posted here.
by ray.wurlod
Fri Jun 08, 2007 7:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: .dsk strucutre for routines
Replies: 6
Views: 1492

Dollars to donuts the place it doesn't work is in a different project.
by ray.wurlod
Fri Jun 08, 2007 7:07 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Is there a better way to handle nulls ???
Replies: 9
Views: 1869

Can be achieved in the metadata.

That's the point I've been making.
by ray.wurlod
Fri Jun 08, 2007 5:07 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: .dsk strucutre for routines
Replies: 6
Views: 1492

I think that post refers to a DSX file, meaning a DataStage export file. These are stored on the client machine wherever you specify when you perform an export. What seems to have happened here is that you have imported the job but not a routine (called AggGetRowCount) that it calls. Both of these ...
by ray.wurlod
Fri Jun 08, 2007 5:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: one to many relationship in joins
Replies: 8
Views: 2041

What you seek to do is a common or garden variety inner join, on the join key column whose value is 123 in your example. Where are you experiencing difficulty?