Search found 6797 matches

by DSguru2B
Thu Aug 17, 2006 11:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Handling Null values in Routines
Replies: 4
Views: 969

Also, along with the null check, check for the length of the input argument. If its equal to zero, assume it to be null. Because if your input is a flat file, then ISNULL will always return a 0, but the Len() function will capture the length as 0.
by DSguru2B
Thu Aug 17, 2006 9:49 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Strange transformer compilation error
Replies: 6
Views: 1197

So shall it be written
So shall it be done. :twisted:
by DSguru2B
Thu Aug 17, 2006 9:48 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Data Stage function extracting only numbers
Replies: 6
Views: 5333

Actually thats what i meant to say, a Transform function. I dont know why i categorize everything as a 'function' :) Bound by habit i guess.
by DSguru2B
Thu Aug 17, 2006 9:44 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Strange transformer compilation error
Replies: 6
Views: 1197

"For every action there is always and opposite and equal reaction.",
Stop acting like crap to it and it will stop behaving likewise.
Hey, i didnt say that, Newton did. :wink:
Jusk playing with you bro. I cant tell you much because it never happened with me.
by DSguru2B
Thu Aug 17, 2006 9:41 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: look up issue
Replies: 5
Views: 745

Either the source or the hashed file has spaces in the key. Make sure you trim the keys while building the hashed file and also trim the keys during the lookup coming from the source.
by DSguru2B
Thu Aug 17, 2006 9:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Data Stage function extracting only numbers
Replies: 6
Views: 5333

MCN with OCONV extracts only numbers. You can also look at the function DIGITS(). It does the exact same thing.
by DSguru2B
Thu Aug 17, 2006 9:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: data load problem
Replies: 9
Views: 2424

Does the log show that the data got loaded or are you guessing that by looking at the link count?
Well, i guess all of your records are getting rejected due to one reason or another. Look into your log file.
OR
you are loading into one table and checking some other table.
by DSguru2B
Thu Aug 17, 2006 9:04 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Extracting a Part from the given String
Replies: 24
Views: 18294

Well, a few suggestions in writing the routine. Read in the entire description and take four positions at a time and check for "P/N ". If it doesnt match, store it in one variable which will be called your 'Restofdata' and if it matches, store it another variable untill you hit , Something like Desc...
by DSguru2B
Wed Aug 16, 2006 10:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Problem with ExecCommand activity in Sequencer
Replies: 9
Views: 2137

Because your script is expecting two arguments and you have provided none in your command
by DSguru2B
Wed Aug 16, 2006 10:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Tab Delimiter
Replies: 3
Views: 1114

If you are going to do that then make sure you have an annotation that specifies what the delimiter is, as it can easily be mistaken for a space.
by DSguru2B
Wed Aug 16, 2006 10:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: delta processing
Replies: 11
Views: 3174

Look into the CDC stage.
by DSguru2B
Wed Aug 16, 2006 10:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: condition in a transformer
Replies: 19
Views: 4275

Ok, this is a little bit tricky. Before building the hashed file, add another column which is a surrogate key, a running number, i.e, 1,2,3..... and so on. Specify that as key and in the derivation of the lookup specify @INROWNUM so that each and every row has a hit. Define a stage variable to check...
by DSguru2B
Wed Aug 16, 2006 9:52 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: create an extract
Replies: 10
Views: 3836

You can also stick an IPC stage in between the transformer and the link collector stage to get rid of that error. This error occurs because both transformer and link collector are active stages and DataStage will not allow a direct link between them unless you have an IPC stage in between or have In...
by DSguru2B
Wed Aug 16, 2006 9:40 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Doubt with ExecCommand Activity in sequence
Replies: 9
Views: 2568

use && in place of ; in Craig's code. This way the second command will only be executed if the first one is successful

Code: Select all

 
cd /DataStage/751A/Ascential && rm *.blp
by DSguru2B
Wed Aug 16, 2006 1:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: condition in a transformer
Replies: 19
Views: 4275

Re: condition in a transformer

rule: Only load the records where main_id = lookup_id and dt_record between dt_start and dt_end. But i thought it was just a single key as per your rule above. Well it doesnt matter how many keys you have. Just link the keys properly to the hashedfile in the transformer. Not(RefLink.NOTFOUND) will ...