Search found 42189 matches

by chulett
Tue Nov 19, 2013 1:22 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sort is failing
Replies: 3
Views: 2137

A) Why add a Sort stage when the data is already sorted? B) What makes you think the sort is 'failing'? C) Are you using the Hashed table to remove duplicates and the 'wrong one' is going in last? D) Please don't expect any particular order when selecting from a hashed table any more than you would ...
by chulett
Tue Nov 19, 2013 12:39 pm
Forum: General
Topic: Extract of log file using DSGetLogEntry not working
Replies: 31
Views: 7284

Already did and stand by my first post on the subject of breadcrumbs. Start by adding in several logging statements so you can see what values are being pulled by the API calls you are making. Can go a long way towards knowing where it is you are going astray.
by chulett
Tue Nov 19, 2013 12:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with sequence number generation
Replies: 15
Views: 5534

Wasn't thinking of using an Identity column (since those would be unique per record which is not the goal here) but literally a sequence that gets incremented conditionally. And then yes, you'd need to transform it into a padded string before actually using it in the records. Still curious about con...
by chulett
Tue Nov 19, 2013 10:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with sequence number generation
Replies: 15
Views: 5534

Clarify something for us - will this DataStage job be the only process manging the Sequence value? Or will other DataStage jobs and/or outside processes be involved with inserting records into this target? If you need to worry about concurrency, that will complicate your solution. And Franklin, you'...
by chulett
Tue Nov 19, 2013 8:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Timestamp Converstion
Replies: 3
Views: 1585

First thing to note is your desired format posted does not include microseconds - are you targeting a TIMESTAMP column in Oracle that will support them or are you actually writing to a DATE? Assuming the former, if you check the documentation you'll see your issue is the format string you are using ...
by chulett
Tue Nov 19, 2013 8:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue when Importing Metadata from oracle table..
Replies: 11
Views: 3247

No doubt an NLS issue. Use the parallel (command line?) metadata importer rather than the plugin. I don't recall its name off the top of my head, however. :(
by chulett
Tue Nov 19, 2013 8:26 am
Forum: General
Topic: Is there a lower case function in DataStage?
Replies: 6
Views: 3695

No... but I've already explained how to solve your problem. And all of the functions are documented, so there's really no need to ask what might be available.
by chulett
Tue Nov 19, 2013 8:20 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to calculate second-highest data value
Replies: 4
Views: 1826

:idea: While you could include a screen shot using the [Img] tags after you've uploaded it to a file sharing site, as you can see there's no need. The forum software automatically removes 'extra' whitespace which is what was affecting your example. I wrapped it in [/b] tags which preserve whitespace...
by chulett
Mon Nov 18, 2013 5:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with sequence number generation
Replies: 15
Views: 5534

Dang, have you guys been reading my diary again? :x

OK, enough of that. Gayathrisivakumar, do you have enough information to get what you need done? If you need more help, please let us know.
by chulett
Mon Nov 18, 2013 5:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: pass by reference vs pass by value
Replies: 4
Views: 2616

Actually, I'm pretty sure this is in the documentation for the stage... probably the Connectivity Guide.
by chulett
Mon Nov 18, 2013 3:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: pass by reference vs pass by value
Replies: 4
Views: 2616

Lots of references to it out in the wild, here's what a quick search turned up for Java but it should apply to DB2 as well for a LOB:

http://www.javacertificate.net/passbyvalue.htm
by chulett
Mon Nov 18, 2013 3:32 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with sequence number generation
Replies: 15
Views: 5534

Keep in mind the fact that most examples of data posted here are completely made up. :wink:
by chulett
Mon Nov 18, 2013 2:00 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: slow execution of simple job using Oracle connector
Replies: 7
Views: 2338

Have your DBA trace the session and see if the index is being used for the updates. If you don't use one of the fields in the composite index (unless it is on the 'trailing' edge) that would preclude index use but using all five of of them should fare much better. I'm assuming your issue is that the...
by chulett
Mon Nov 18, 2013 12:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: slow execution of simple job using Oracle connector
Replies: 7
Views: 2338

Gotcha... an anonymous block. Let's start with the obvious first question, are the fields in your 'where' clause indexed in such a way that supports the update (and delete)?
by chulett
Mon Nov 18, 2013 11:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with sequence number generation
Replies: 15
Views: 5534

So... your 'Sequence' is actually a string field? That would be the only way to store those leading zeroes if they are significant. I would handle this in stage variables, tracking the current v. previous version of the key field and only incrementing the sequence number stage variable when it chang...