Search found 93 matches

by MarkB
Mon May 09, 2011 7:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: switch stage
Replies: 8
Views: 13603

You can certainly use 'characters' in the Case statement of the switch.

For example, try:

CASE = SMITH=0
CASE = JONES=1

Under Options, pick either Drop to drop rows not in the CASE, OUTPUT for sendingdown a reject link, or FAIL to abort.
by MarkB
Fri May 06, 2011 9:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Can .txt file contain null value?
Replies: 10
Views: 9228

Actually, they're not. What you have in sequential files are empty fields rather than nulls. ... <sigh> Picky, picky,picky :wink: True, they are empty fields, but when you are processing them into a transformer and writing them out you need to handle them as being null, which is what I believe the ...
by MarkB
Fri May 06, 2011 8:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Can .txt file contain null value?
Replies: 10
Views: 9228

Of course null values are possible in text files. As an example, you have a pipe-delimited text file with 4 columns .... you get data like:

1|A|B|C
2||D|E
3|F|G|H

On the second row, you have a null on the second column.
by MarkB
Fri May 06, 2011 7:22 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Writing to NPS via nzload method
Replies: 2
Views: 5612

Look at the documentation for the Netezza stage. You must install the Netezza client if you want to use nzload. If you haven't the client installed, you must use the External Table method.
by MarkB
Fri May 06, 2011 6:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Weird ODBC Stage Behaviour
Replies: 6
Views: 3282

Out of curiosity, have you tried one of the DB2 stages instead of the ODBC Enterprise stage to see if you get the same errors?
by MarkB
Fri May 06, 2011 5:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Spiltting a huge file into multiple small files
Replies: 5
Views: 3347

I don't think coming up with ways to split the file will accomplish anything other than complicating the job and getting the same results. :roll: The issue the OP has is one of disk space. You can split the file into hundreds of smaller files and it won't matter one iota if you are still writing the...
by MarkB
Wed May 04, 2011 7:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: hash file
Replies: 4
Views: 2740

chulett wrote:what is the right forum to post this question in?
Interview questions???? :P
by MarkB
Mon May 02, 2011 1:18 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Quick question on querying DS_JOBS table
Replies: 17
Views: 15537

Have you tried:

SELECT NAME FROM DS_JOBS WHERE CATEGORY = '\coverage_performance';

Make sure you are specifying the correctly spelled category - do:

SELECT DISTINCT CATEGORY FROM DS_JOBS;
by MarkB
Fri Apr 29, 2011 6:58 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: XML 2 same tags,same attributs but the value differents
Replies: 15
Views: 7381

Craig has removed the original post, but it was the exact same question. So what's changed?
by MarkB
Fri Apr 29, 2011 6:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: XML 2 same tags,same attributs but the value differents
Replies: 15
Views: 7381

chulett wrote:Ah... I see Mark was quicker. :wink:
Yeah, it must have been the tone of the message made me jump in so fast :D
by MarkB
Fri Apr 29, 2011 6:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: XML 2 same tags,same attributs but the value differents
Replies: 15
Views: 7381

I think you asked this already in another entry... ... @eostic, that s not the anwser that i expected, if you see any post with answer you can send me the link ...and why should he do that??? You can check your own posts and see that you've asked this before: http://www.dsxchange.com/viewtopic.php?...
by MarkB
Thu Apr 28, 2011 10:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: current date () - 6 months
Replies: 17
Views: 8448

In transformer stage, Sort the input Date Column in DESC order and using constraint send out the First Six Rows. If you are running your job in parallel use this in constraint to filter the last 6 months: (((@INROWNUM -1) * @NUMPARTITIONS) + @PARTITIONNUM + 1) <= 6 Hope this helps Huh??? :roll: I t...
by MarkB
Thu Apr 28, 2011 10:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: current date () - 6 months
Replies: 17
Views: 8448

Well, here is one way to get your results, though I'd check your resulting file carefully :D . For this, define your YYYYMM column in your sequential file as integer. Create a stage variable - in this example I named it 'CUTOFF'. This is defined as follows: StringToDecimal(DateToString(DateFromDaysS...
by MarkB
Thu Apr 28, 2011 6:20 am
Forum: General
Topic: Sequencer
Replies: 2
Views: 1412

You might want to review the docs for Sequences to get a better handle on them, but in answer to your question, yes, it can be done. In your Job Activity stage, on the Triggers tab you can set a Custom conditional expression. In the expression, you can specify the conditions that the next job activi...
by MarkB
Wed Apr 27, 2011 1:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Current date in Teredata
Replies: 9
Views: 6803

Maybe try CURRENT_DATE instead of DATE???