Search found 382 matches

by chucksmith
Wed Jun 16, 2004 4:33 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Which Jobs Load Hashed Files?
Replies: 15
Views: 5706

Hi Mike,

I think my new approach, to base the search on a dsx, will be more future proof. Expect the new versions to operate this way. So yes, I use the tools myself, and do plan to continue supporting the future release of DataStage.

Chuck
by chucksmith
Wed Jun 16, 2004 4:28 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Inserting Dummy Row at the end
Replies: 8
Views: 6082

I think the easiest solution is to create a second job that appends a single row to your output file. This could be as simple as a transform outputting to a sequential file. Use a stage variable as your constraint, and allow it to be true only for one row. Example: Initialize the stage variable to 0...
by chucksmith
Wed Jun 16, 2004 4:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Which Jobs Load Hashed Files?
Replies: 15
Views: 5706

Check my web site, www.anotheritco.com. Under DataStage Tools, I have some Universe Basic programs that may help. They work at release 5 and lower. I also have a release 6 and above routine that does similar things by searching a dsx, but it is not on the web site yet.

Chuck
by chucksmith
Wed Jun 16, 2004 4:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Stage variable in sequential file name
Replies: 13
Views: 9844

Let's back up. Can you use a job parameter instead of a stage variable? If so, then including the parameter in a file or table name is no problem. Basically, enclose it in # within the file pathname (e.g. "/home/login/folder/#duedate#/xyz.txt). Now, how do we get the value passed into a job par...
by chucksmith
Wed Jun 16, 2004 3:51 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Executing unix script via "Execute Command" in seq
Replies: 15
Views: 11296

Although the "execute command" stage does not like parameters, you can easily replace it with a "routine activity" stage, and hide your command within it. Use DSExecute to run your command from the routine.

Chuck
by chucksmith
Wed Jun 16, 2004 3:44 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Need to capture a running total at the end of a transform
Replies: 18
Views: 7208

Just because you use an aggregator, does not mean you have to use a group by. That is one of the nice things about "Last". This is also a handy trick if you output based upon the difference between the previous row and the current row. Since the last row will never have something to trigge...
by chucksmith
Wed Jun 16, 2004 1:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Need to capture a running total at the end of a transform
Replies: 18
Views: 7208

I suggest you combine the two approaches. Calculate your totals using stage variables, and feed the stage variables to an aggregator with the "Aggregate function" set to "Last". When the transform completes, the aggregator will output one row of your final totals.

Chuck