Search found 42189 matches

by chulett
Thu Jun 17, 2004 6:30 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Executing unix script via "Execute Command" in seq
Replies: 15
Views: 8845

Wow - thanks for all the input. I'm not convinced though that the parameters aren't being recognized -or translated- in the execution of the script since the echo statements I already have in there echo back the correct values of the parameters I'm sending it. Really? $CB and $PT echo out correctly...
by chulett
Wed Jun 16, 2004 7:56 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Stage variable in sequential file name
Replies: 13
Views: 8720

That brings us to the question, how can we pass a value in a transformer, for example, value contained in a stage variable to a newly created job parameter in the middle of a job and use that in the sequential file name box? It's been said already and I'll just add to the chorus - you can't. The na...
by chulett
Wed Jun 16, 2004 4:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Executing unix script via "Execute Command" in seq
Replies: 15
Views: 8845

Sorry, should have mentioned that as it is the official 'workaround'.
by chulett
Wed Jun 16, 2004 2:47 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Executing unix script via "Execute Command" in seq
Replies: 15
Views: 8845

As stupid as it sounds - you can not pass Job Parameters to a script using the Execute Command stage. It will look like it's working in the log, but they do not get translated in the actual script execution.

Painful bug been there since Day One with the stage. :evil:
by chulett
Wed Jun 16, 2004 2:22 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unable to capture Reject Record
Replies: 5
Views: 2099

It gets confused. :wink: When you send 500 records at a time, it can't always correctly tell you which one was the problem child. Sometimes it doesn't even give you the correct count. :?
by chulett
Wed Jun 16, 2004 1:42 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: 5482

'Last' is an aggregation method in the Aggregator Stage.
by chulett
Wed Jun 16, 2004 1:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unable to capture Reject Record
Replies: 5
Views: 2099

Do you have Row Buffering turned on? Try it with it off.

If your 'Array Size' is greater than 1, change it to 1 and try it again.
by chulett
Wed Jun 16, 2004 1:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Which Jobs Load Hashed Files?
Replies: 15
Views: 4413

Kinda going slightly OT here, but how would I find all jobs where a certain job parameter name has no default value?
by chulett
Wed Jun 16, 2004 7:17 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading a seq file and use the content into a SQL
Replies: 4
Views: 1092

Which part do you need help with? Your 'Contents of the sequential file' becomes a Job Parameter and is used in the OCI stage just like Ray illustrated in his first example - surrounded by pound signs (#) in the where clause. You'll need something, typically a piece of Job Control code, to read the ...
by chulett
Wed Jun 16, 2004 7:06 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Difference between Clear and Truncate
Replies: 5
Views: 2637

'Truncate' means truncate. The table is logically cleared almost instantly.

'Clear' means delete all records. This is transactional and can take time, rollback, etc etc.
by chulett
Wed Jun 16, 2004 7:04 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problems with dates
Replies: 9
Views: 4822

The simplest 'trick' to get the last day of a month is to still set the day portion to '01' like you do for the first day. Then, bump the month to the next month and increment the year if you need to as well. Then subtract 1 day. For example: 200405 -> 2004-05-01 -> 2004-06-01 -> 2004-05-31 In DataS...
by chulett
Wed Jun 16, 2004 6:51 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: join conditions on target columns
Replies: 5
Views: 1616

I would think you should be able to build three hash files and check them in order to get the data you need. Both of your conditions, where you either get one row or more than one row, can be satisfied by the hash by taking advantage of its 'destructive overwrite' behaviour - bring the keys in in de...
by chulett
Tue Jun 15, 2004 9:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Empty Source File
Replies: 9
Views: 2839

Not by much, it would appear. :wink:
by chulett
Tue Jun 15, 2004 9:13 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Empty Source File
Replies: 9
Views: 2839

Put this at the top of your routine:

Code: Select all

$INCLUDE DSINCLUDE JOBCONTROL.H 

Or more properly:

Code: Select all

$IFNDEF JOBCONTROL.H 
$INCLUDE DSINCLUDE JOBCONTROL.H
$ENDIF