Search found 42189 matches

by chulett
Mon Oct 04, 2010 6:55 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: aborting a job
Replies: 11
Views: 2844

Or the "online" help from the client tools. Switch to the Index tab, type "DS" and you'll be right there.
by chulett
Mon Oct 04, 2010 6:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fixed value in a lookup
Replies: 8
Views: 2351

Can't you include that Type column as a key for the lookup and then hardcode either the 'Buy' or 'Sell' value in the field used for the lookup itself? :?
by chulett
Mon Oct 04, 2010 6:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Export of Datastage job from command prompt
Replies: 13
Views: 14191

A pathing issue, it would seem. Either fully path the command, add its home directory to your $PATH or 'cd' there first and then "dot slash" it.
by chulett
Mon Oct 04, 2010 6:48 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: highest surrogate key
Replies: 39
Views: 9018

But can you guys expplain me as to why its not working if i do lookup directly with the database Not possible to say without all of the gory details we'd need or actually seeing how you implemented it. All I can guess is that your lookup query wasn't keyed correct. [shrug] The hashed file is the be...
by chulett
Mon Oct 04, 2010 6:43 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: highest surrogate key
Replies: 39
Views: 9018

Right - it is a label, key for a record in a hashed file and one I typically name after the target it will be used in. All this would be revealed by a simple double-click on the routine itself and an inspection of the code. You would then learn the name of the hashed file and could thus query or sou...
by chulett
Sun Oct 03, 2010 9:11 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: highest surrogate key
Replies: 39
Views: 9018

And all of your lookups are failing? You didn't explain how you implemented them - hashed file, direct database, what? Have you debugged the job to see why your keys aren't matching?
by chulett
Sun Oct 03, 2010 4:19 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: highest surrogate key
Replies: 39
Views: 9018

More details needed. How, exactly, are you checking for existence? Business key hashed lookup for the surrogate to update?
by chulett
Sun Oct 03, 2010 2:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: aborting a job
Replies: 11
Views: 2844

Database triggers? A 'before insert' trigger that raises an error when that value is seen could work, I suppose, depending on your warning level. Or you could just call DSLogFatal() in the job itself.
by chulett
Sun Oct 03, 2010 2:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: aborting a job
Replies: 11
Views: 2844

And I prefer to capture them all and then conditionally abort the job if the error file is not empty and that is the requirement. That way all problems are known, not just the first one.
by chulett
Sun Oct 03, 2010 2:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: NULL & Sequential File
Replies: 11
Views: 3564

Technically. :wink:
by chulett
Sun Oct 03, 2010 11:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: aborting a job
Replies: 11
Views: 2844

Why abort? Why not capture it and move on?
by chulett
Sun Oct 03, 2010 11:40 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: highest surrogate key
Replies: 39
Views: 9018

Those routines provide a unique value every time they are called. They track the last value used and increment it by one, simple as that. You would need to detail your job design and how you are determining inserts v. updates before anyone could help with your other issue.
by chulett
Sun Oct 03, 2010 10:32 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: highest surrogate key
Replies: 39
Views: 9018

It needs to be a string, a hard-coded value. For example, if your target table is named TEST.FRED then use KeyMgtGetNextValue("TEST.FRED") as the call.
by chulett
Sun Oct 03, 2010 6:04 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: NULL & Sequential File
Replies: 11
Views: 3564

Sequential files allow nulls, yes. The Server product makes handling them a little easier, basically you'll end up with a empty string / field unless (of course) you are writing out to a fixed-width file. In that case you'll need to supply something of the appropriate size for the field, typically s...
by chulett
Sun Oct 03, 2010 5:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: highest surrogate key
Replies: 39
Views: 9018

You use KeyMgtGetNextValue('X') and for every discrete value of 'X' it will track an incremented surrogate value. We used the target table name for 'X', including owner if needed to make it unique.