Search found 53125 matches

by ray.wurlod
Mon Apr 26, 2004 2:02 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date converted to Timestamp during import
Replies: 3
Views: 925

Because that's the only way Oracle stores dates. :lol:
Even though the data type is DATE in Oracle, you can specify a date picture of 'YYYY-MM-DD HH24:MI:SS' for example, and it's all OK.
by ray.wurlod
Mon Apr 26, 2004 1:58 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Clearing a multiple input hash file
Replies: 9
Views: 8067

Set your rule to "clear file before writing" on the Hashed File stage's Input link.
by ray.wurlod
Sun Apr 25, 2004 4:52 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Eliminating leading 0 in the number
Replies: 5
Views: 2138

In every computer I've ever encountered (and we're going WAY back here!) addition and subtraction have required fewer machine cycles than multiplication and division. With today's fast processors the difference is unlikely to be noticeable until you get to very large numbers of arithmetic operations...
by ray.wurlod
Sun Apr 25, 2004 4:42 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problems creating large hash files
Replies: 14
Views: 4948

Re: Problems creating large hash files

Hi All, us and our large hash files again.... We are taking the approach of squeezing our lookup tables in under the 999MB limit for each table so we are doing our best to take everything out of hash tables that we can to minimise the #bytes. We thought we had got there. For example I have now a 21...
by ray.wurlod
Sun Apr 25, 2004 4:33 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Create Backup Of Flat File
Replies: 9
Views: 2813

This is outside my BAT file skills too, so here's a custom routine that you can call instead of ExecDOS. Create the routine making its type "Before/After Subroutine" (this is vitally important). Place the base name of your file (that is, the parameter we've already been discussing, #FileName#) in th...
by ray.wurlod
Sun Apr 25, 2004 4:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Calling SQL script/stored procedure from a DataStage job
Replies: 5
Views: 3835

You don't need a stored procedure for that particular task; it's an ordinary update. Set your "rule" to "update existing rows only", specify that Field2 and Field3 are "Key" (it's OK to lie here), deliver the values "A" for Field 1, 10 for Field 2 and 20 for Field 3. If you really must call a stored...
by ray.wurlod
Sun Apr 25, 2004 4:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DS Administrator
Replies: 1
Views: 1058

Setting project-wide defaults for things like log purging and national language support. Setting security - which groups can be developers, which groups can run only (operators), which groups have no access to DataStage. Re-building indexes in the Repository. Managing locking and processes within th...
by ray.wurlod
Sun Apr 25, 2004 4:07 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Merge two files in between the job
Replies: 2
Views: 826

Assuming that you are referring here to two text files, the answer is no. This is not a DataStage restriction, it is an operating system restriction. The operating system will not permit simultaneous writers to a file. In theory you could add a second Transformer stage to add the extra lines to the ...
by ray.wurlod
Sun Apr 25, 2004 3:59 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: shared container - increasing the speed
Replies: 3
Views: 1271

What stage type inside the shared container contains the "dynamic SQL" statement? What you seem to be trying to accomplish here is to have the following architecture run at no cost; that is, to run at the same speed as if it weren't there. The layers are: UNIX osh (several processes) DataStage job p...
by ray.wurlod
Sun Apr 25, 2004 3:51 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Accessing a C shared Library function in a server routine
Replies: 14
Views: 4176

Calling C functions from server (= DataStage BASIC) is possible, but not for the faint hearted. It's done through a mechanism called the General Call Interface (GCI) and, among other things, requires that you statically link the function library into the DataStage executable. That is, you have to bu...
by ray.wurlod
Sun Apr 25, 2004 3:46 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to debug Phantom?
Replies: 7
Views: 2374

"Phantom" simply means "background process" in DataStage terminology. The message you're getting indicates that somewhere in your job design a variable is not being assigned. This could be in a stage variable not being initialized, or it may be in a Routine invoked from an expression in the Transfor...
by ray.wurlod
Sun Apr 25, 2004 2:55 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Debug a routin
Replies: 7
Views: 3628

What exactly do you want to debug? What condition is occurring that you feel to be abnormal? Am I correct to assume that you're using TmpFileDirectory_PHSCO as the first (input) argument, and ErrorCode as the second (output) argument? The main problem I can see in the design is that it keeps going e...
by ray.wurlod
Sun Apr 25, 2004 2:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Keeping the old value on update
Replies: 4
Views: 1418

The option is on the General page of the Inputs tab. Better design is to segregate the rows to be inserted and updated so that one link can handle "insert new rows only" and the other link can handle "update existing rows only". In this case, preserve the original value in a column simply by not del...
by ray.wurlod
Sun Apr 25, 2004 2:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Accessing Hashed files using UV stage
Replies: 3
Views: 1288

The answer to the question is NO. The hashing algorithm can only be used (and only makes sense) if the exact value of the key is being sought. It is the value of the key that is processed by the hashing algorithm to determine the location of the record. You can improve performance markedly by indexi...
by ray.wurlod
Sun Apr 25, 2004 2:34 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Creating a secure Routine
Replies: 3
Views: 1393

Private message: Hi Ray, I am attempting to secure a routine with the guidelines you suggested but as I spend more time coding in SQL, I will need more clarification. When you wrote about creating the routine separate from DataStage, were you referring to creating a VB module? Then, I can use the co...