Search found 53125 matches

by ray.wurlod
Thu Dec 22, 2011 4:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Creating random SSN values
Replies: 13
Views: 5663

Probably. I am without DataStage at the moment, gearing up to perform another installation. My DSXchange answers are from memory. Rnd() is the equivalent server Transformer function. I vaguely recall that Rand() only returns a value between 0 and 1; if so you'll need to multiply that by an appropria...
by ray.wurlod
Thu Dec 22, 2011 4:35 pm
Forum: General
Topic: Shell script execution
Replies: 17
Views: 4544

That doesn't mean your job runs under that ID. Use ExecSH as a before-job subroutine and execute the id command to determine the actual user.
by ray.wurlod
Thu Dec 22, 2011 3:46 pm
Forum: General
Topic: End of Year Amusement
Replies: 8
Views: 2116

End of Year Amusement

Run Cognos through Microsoft Word spell-check.

Try the following Google searches (may not work in old versions like IE6).
  • tilt
    let it snow
    recursion
    do a barrel roll
    Hannukah
    anagram
by ray.wurlod
Thu Dec 22, 2011 3:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Creating random SSN values
Replies: 13
Views: 5663

Code: Select all

10000000 + Rnd(89999999)
should get you close.
by ray.wurlod
Thu Dec 22, 2011 3:40 pm
Forum: General
Topic: Shell script execution
Replies: 17
Views: 4544

What user ID do your DataStage jobs run under?
by ray.wurlod
Thu Dec 22, 2011 2:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Finding week and Month from Number
Replies: 15
Views: 5463

Weeks is easy. And if you're only interested in 01/01/yyyy as the base date, then 31 is a reasonably day count figure to use.

Months, on the other hand, require you to extract the day number and month number, and compare these. Pertinent functions are MonthDayFromDate() and MonthFromDate().
by ray.wurlod
Thu Dec 22, 2011 2:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Updating after loading into target
Replies: 19
Views: 4301

pandeesh wrote:By default , both will commit at end of all the records processed.
Correct me if I am wrong.
You're wrong. Bulk load is non-transactional, so COMMIT does not come into the picture.
by ray.wurlod
Thu Dec 22, 2011 2:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Problem retrieving data from db2
Replies: 9
Views: 4794

There's also an APT_ environment variable that can specify the default DB2 instance. I can't recall what it is at the moment.
by ray.wurlod
Thu Dec 22, 2011 2:40 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Multiple Filter conditions - The Best Approach
Replies: 6
Views: 2002

I, too, would use separate stage variables (they can be combined with OR) or, perhaps, write an IsValidSSN routine.
by ray.wurlod
Thu Dec 22, 2011 2:36 pm
Forum: Information Analyzer (formerly ProfileStage)
Topic: the irony of a non-severe system error
Replies: 4
Views: 2386

Not as good as "No keyboard detected. Press F2 to continue".
:lol:
by ray.wurlod
Wed Dec 21, 2011 11:38 pm
Forum: General
Topic: Some annoying things in 8.1
Replies: 13
Views: 2926

pandeesh wrote:The moving folders option should be included in future release.
That's news to me. Where did you hear that?
by ray.wurlod
Wed Dec 21, 2011 11:34 pm
Forum: IBM QualityStage
Topic: Rule Sets .ITO file missing?
Replies: 4
Views: 1955

Gimme a B...

Gimme a U...

It's now time to involve your official support provider, as you would appear to have discovered a bug.
by ray.wurlod
Wed Dec 21, 2011 8:21 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Before SQL - Insert a default row based on a condition
Replies: 7
Views: 2099

One example is where the table is self-referential, such as every employee has a manager ID. This is enforced with a foreign key constraint. How do you get the first row into the table? Answer: you populate the first row (maybe called a ghost row) before you apply the constraint.
by ray.wurlod
Wed Dec 21, 2011 8:14 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Help in subquery logic
Replies: 6
Views: 1914

Insert a "C2 is null" filter into the data flow?

You haven't really thought about this as a DataStage problem. You have to read the entire text file. Therefore you will get to see every row. A conditional transformation will be easy to construct

Code: Select all

If IsNull(C2) Then D2 Else originalvalue
by ray.wurlod
Wed Dec 21, 2011 8:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Multiple Filter conditions - The Best Approach
Replies: 6
Views: 2002

Multiple output links with different constraint expressions?

What do you mean by "filter"?