Search found 53125 matches

by ray.wurlod
Tue Apr 20, 2010 5:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how can i acheive this code in Datastage
Replies: 3
Views: 1466

Code: Select all

9 * x.charat[1,1] + 8 * x.charat[2,1] + 7 * x.charat[3,1] + 6 * x.charat[4,1] + 5 * x.charat[5,1] + 4 * x.charat[6,1] + 3 * x.charat[7,1] + 2 * x.charat[8,1] + x.charat[9,1]
You may need to apply conversion functions like StringToDecimal() to prevent warnings.
by ray.wurlod
Tue Apr 20, 2010 5:14 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to do coding for this plsql code in Datastage
Replies: 3
Views: 1532

Write out a specification in English, since not everyone reads PL/SQL code. This may also help you to determine what you want to achieve, by forcing you to focus your thoughts. Think about testing your algorithm; test values, expected and actual results.
by ray.wurlod
Tue Apr 20, 2010 5:12 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Generating sequence numbers using Stage variables
Replies: 19
Views: 7536

This is a server job.

I would not bother with stage variables at all. I would pass in the maximum value as a job parameter and use the expression

Code: Select all

jpMaxKeyValue + @INROWNUM
by ray.wurlod
Tue Apr 20, 2010 2:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DataStage Development Control
Replies: 3
Views: 1510

No, but it will in the next version (probably 8.5).
by ray.wurlod
Mon Apr 19, 2010 6:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Read a Parameter file from UNIX Directory & pass value
Replies: 17
Views: 13724

The code could alternately be invoked through a Routine activity in the sequence. Return all values in a delimited string - ideally a dynamic array because this can manage nulls - and, in the User Variables activity (or anywhere else) use the Field() function to retrieve a particular value.
by ray.wurlod
Mon Apr 19, 2010 2:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: truncate leading zeros
Replies: 13
Views: 4414

Please mark thread as Resolved
by ray.wurlod
Mon Apr 19, 2010 2:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: parameter set issue
Replies: 4
Views: 2180

When you mark a topic as resolved, our expectation (to help future searchers) is that you make a post explaining how it was resolved.
by ray.wurlod
Mon Apr 19, 2010 2:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to set NLS on for non NLS installation
Replies: 3
Views: 1625

To pre-empt your next question, there is no alternative than to reinstall.
by ray.wurlod
Mon Apr 19, 2010 2:00 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job Sequence hangs at checkpointing
Replies: 9
Views: 15414

How large is the log? Is the log corrupted?

Please advise what the sequence does. Everything it does.
by ray.wurlod
Mon Apr 19, 2010 1:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Values getting NULLed
Replies: 8
Views: 2433

The second thing that comes to mind is that a failed lookup returns nulls from the reference input.
by ray.wurlod
Mon Apr 19, 2010 4:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage and SGML
Replies: 2
Views: 1096

My guess is no. But you could write your own custom stage.
by ray.wurlod
Mon Apr 19, 2010 4:32 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Fetch substring and compare in execute command trigger
Replies: 6
Views: 3810

Try using an explicit Field() function rather than the delimited substring extraction syntax.
by ray.wurlod
Mon Apr 19, 2010 2:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to achive this
Replies: 10
Views: 5268

Of course it takes a long time - you have a correlated subquery here.

The only way you will get it to run faster in DataStage is to have both query results available - then DataStage can do a lookup on the unique instances.
by ray.wurlod
Mon Apr 19, 2010 12:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Two colum will populate in Single colum
Replies: 2
Views: 1123

Use a Pivot stage. Upstream of the Pivot stage use a Column Generator stage to add the constants. con_id con_sus_id con_id_K con_sus_id_K 1 10 T C 1 8 T C 2 4 T C 3 6 T C 5 7 T C 9 8 T C Pivot on con_id,con_sus_id and on con_id_K,con_sus_id_K
by ray.wurlod
Sun Apr 18, 2010 11:59 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Running multi instance job from sequence job
Replies: 10
Views: 4418

In a word: PATH