Search found 53125 matches

by ray.wurlod
Wed Mar 17, 2004 7:57 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Use of dynamic arrays as stage variables
Replies: 1
Views: 960

Yes. A stage variable can contain any value, and a dynamic array is just a string with delimiter characters. How you access the individual elements depends on the delimiter character used in constructing the dynamic array. A generic solution is to use the Field() function. Field(stagevariable, d...
by ray.wurlod
Wed Mar 17, 2004 3:51 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: tmp and scratch space
Replies: 1
Views: 849

More! This question is in the same league as "how long is a piece of string?". It really does depend on what you're doing. Ideally you shouldn't need to use /tmp at all with PX, as temp space for the Engine is configurable (via UVTEMP in uvconfig) and scratch space per node is configurable in PX con...
by ray.wurlod
Wed Mar 17, 2004 3:45 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Changing ODBC SQL file layouts?
Replies: 3
Views: 1092

DataStage is driven by metadata. If the metadata change, DataStage has no mechanism to detect that fact. It must all be altered manually. That is, you need to change your DataStage job design to incorporate metadata for the new fields in the source file. You also need, if applicable, to alter the ta...
by ray.wurlod
Wed Mar 17, 2004 3:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Need example of UPDATE statement placement in an ODBC stage
Replies: 2
Views: 1137

Welcome aboard! You have two choices. In the ODBC stage there is a drop-down list of how you want the rows to be treated in the target database. The default (from memory) is clear table then insert rows. If you choose any of the update options from this list, then DataStage will generate an UPDATE s...
by ray.wurlod
Tue Mar 16, 2004 12:35 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: constant parameter
Replies: 4
Views: 1182

The derivation expression for a stage variable whose value you do not want to change is simply the stage variable's own name. 8)
by ray.wurlod
Mon Mar 15, 2004 1:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: 64BIT Hashed Files
Replies: 27
Views: 8641

An undocumented method. The STATUS statement (not the same as the STATUS function) returns a dynamic array of information about an open file. According to the BASIC manual, there are 30 fields. A little research has revealed that there are, in fact, 32 fields returned. Field 31 is the "magic number"...
by ray.wurlod
Mon Mar 15, 2004 12:26 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: key management
Replies: 8
Views: 2631

We will need to see the code of ErrID routine before being able to diagnose.
Did you capture the output of the SQL statement so that you could check for errors? If so, what message was output?
by ray.wurlod
Mon Mar 15, 2004 12:24 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to run a Server job by setting a row limit
Replies: 3
Views: 1072

There are a few possibilities. Ken mentioned setting a row limit in Director when submitting the run request. This can also be accomplished, in various ways, with the other ways of submitting a job run request, for example the dsjob command line interface. The down side to this approach is that the ...
by ray.wurlod
Sun Mar 14, 2004 6:04 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How do we capture duplicate records
Replies: 11
Views: 4138

It's only approximate, remember. The chance of a false positive could be as high as one in 2,147,483,647. :!:
by ray.wurlod
Sat Mar 13, 2004 5:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: List (separate with comma) to rows
Replies: 2
Views: 1006

Even if you don't, someone else may benefit from that piece of knowledge, which is really why I posted it.
by ray.wurlod
Sat Mar 13, 2004 4:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Which is more efficient Hash Tables or OCI lookups
Replies: 17
Views: 4908

I think, if you read it a bit more carefully, that you will find that what Ken said was that the design called for 30M rows, but what he implemented was ten hashed files each with only 3M rows. I suspect, without knowing the individual case, that data were partitioned based on the final digit of the...
by ray.wurlod
Sat Mar 13, 2004 4:51 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Last_Updated_On and Last_Updated_By
Replies: 3
Views: 823

Beware that this is an Oracle answer (the OP's question was about Oracle).

This technique can also be used in other databases, but the name of the user constant may be different, for example CURRENT_USER.

Be careful. Do your research. :wink:
by ray.wurlod
Sat Mar 13, 2004 4:46 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: key management
Replies: 8
Views: 2631

SDKSequences is a table. It's key value is the argument for KeyMgtGetNextValue. It has one other column; the next value to be used in the sequence. Therefore, to reset just one "sequence", use a WHERE clause in the UPDATE statement. UPDATE SDKSequences USING DICT VOC SET F1 = '1' WHERE @ID = 'dept_k...
by ray.wurlod
Sat Mar 13, 2004 4:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How do we capture duplicate records
Replies: 11
Views: 4138

Checksum is not a perfect way to check for duplicates, because there is a slim chance (approximately one in 2,147,483,648 for CRC32) that a false positive will occur - that is, that different data will generate the same checksum. That's close enough for many folks.
by ray.wurlod
Sat Mar 13, 2004 4:37 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: system freeze
Replies: 3
Views: 1078

Are you running a UNIX version of DataStage in the Cygwin emulation, or are you running a Windows version of DataStage? If the latter, what is it that you are doing with Cygwin that you think might contribute to the symptom that you are describing? Is it the DataStage server machine that "freezes" (...