Search found 6797 matches

by DSguru2B
Tue Feb 27, 2007 9:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Covert comma separated decimal field to DataStage decimal
Replies: 5
Views: 7107

Is this the only way to handle this situation? I would have thought that comma in decimal figure is basic stuff and should be handled either implicitly or explicitly with format string? As Ray would put it sometimes, "Stop thinking like a server developer !!!" DataType conversions are present in En...
by DSguru2B
Tue Feb 27, 2007 9:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date Difference
Replies: 2
Views: 898

Kumar is right, if you look at the DS help of these functions, you will see that JulianDayFromDate() will return an integer. You can perform this function on your incoming dates and do the substraction. If you just need the difference and not concerned about which date is higher, you can also use Ab...
by DSguru2B
Tue Feb 27, 2007 9:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: problem with reject link
Replies: 3
Views: 925

If the so called 'reject table' was designed specifically for this job then I would say standardize the meta data at the table level as well. In otherwords, change the column name to whats in the file. This way there is conformity of metadata.
by DSguru2B
Tue Feb 27, 2007 9:16 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle User-Defined Function
Replies: 14
Views: 4363

Get it working outside DataStage first. Once you have a working function,then you can call it inside the database stage wrapped in a sql.
by DSguru2B
Mon Feb 26, 2007 9:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Converting comp3 value into integer
Replies: 5
Views: 1277

The server routine's code is visible. Examine it and translate the code into C.
by DSguru2B
Mon Feb 26, 2007 7:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Get row number from sequential files
Replies: 4
Views: 1337

Add another column that has a running number. This way when it gets rejected, you will have the row number right there with the row.
by DSguru2B
Mon Feb 26, 2007 7:07 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: ODBC vs Plugins
Replies: 8
Views: 1646

As always, great article Vincent. :)
by DSguru2B
Mon Feb 26, 2007 7:05 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Websphere MQ: New Daylight Saving Time
Replies: 5
Views: 3243

Craig, what you posted, IMHO, should be on the main page as a reminder for all. Its important piece of information.
Maybe the webmaster can do that. Just a thought....
by DSguru2B
Mon Feb 26, 2007 6:36 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: ODBC vs Plugins
Replies: 8
Views: 1646

Enterprise stages utilize full parrallism and can do loads along with inserts. More is available by going through the manuals.

I should have added that in cases where native api stages are faster, its due to the usage of native drivers. :)
by DSguru2B
Mon Feb 26, 2007 6:30 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Exec. Command stage to import sequential file info
Replies: 10
Views: 2256

It has line terminators that are converted to @FM by DataStage. Do a field() and get the everything before the first @FM.
by DSguru2B
Mon Feb 26, 2007 6:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Stored Procedure and Environment
Replies: 11
Views: 2831

First option for environment variable and second for just the job parameter. Try this, just specify a job parameter and see if that works.
by DSguru2B
Mon Feb 26, 2007 2:45 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Set Transaction
Replies: 2
Views: 935

Do a count on the file, something like "wc -l" and perform your percentage manipulation. Pass that value as a job parameter to your job. Specify a reject link that will capture all the rejects. The constraint will, along with the .REJECTED, IF @OUTROWNUM > ABORTCOUNT then UtilityAbortToLog("Threshol...
by DSguru2B
Mon Feb 26, 2007 2:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Stored Procedure and Environment
Replies: 11
Views: 2831

You should be able to use the parameters. I am not a big fan of making all parameters as environment variables, but I test it out in a dummy job and it works here. How did you define the environment variable in the first place? Go to the job properties, click on "Add environment variables", hit on n...
by DSguru2B
Mon Feb 26, 2007 2:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Stored Procedure and Environment
Replies: 11
Views: 2831

If you hardcode the value. Does it work fine?
by DSguru2B
Mon Feb 26, 2007 2:00 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Why dont we have look-up stage in Datastage Server jobs
Replies: 10
Views: 4746

RohanSharma wrote:But in a parallel stage we can perform a lookup using the look up stage and datasets always.

And thats how the px engine was designed to perform. Server jobs dont have lookup stage and datasets, period.