Search found 53125 matches

by ray.wurlod
Thu May 20, 2004 4:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Removing (,/ -) from the phone column
Replies: 24
Views: 6111

Performance tip 3.

Preloading ValidChars at compile time will give a small gain in performance. Instead of

Code: Select all

ValidChars = "ABC..." 
use

Code: Select all

Equate ValidChars To "ABC..."
by ray.wurlod
Thu May 20, 2004 4:46 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Removing (,/ -) from the phone column
Replies: 24
Views: 6111

Performance tip 2.

The Index() function will be faster than Count(), because it can stop at the first occurrence. Count will need to process the entire string on each iteration of the loop.

Code: Select all

If Index(ValidChars, TestChar, 1) Then
   RetValue := TestChar
End
by ray.wurlod
Thu May 20, 2004 4:44 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Removing (,/ -) from the phone column
Replies: 24
Views: 6111

Performance tip.

Code: Select all

RetValue := TestChar

will be faster than

Code: Select all

RetValue = RetValue : TestChar

and the difference is greater the longer the string in RetValue is.
by ray.wurlod
Thu May 20, 2004 4:42 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Abnormal Termination
Replies: 11
Views: 3573

Another common cause for abnormal termination of stage is that the stage is handling NULL values where it isn't expecting to.

Beware that the Sequential File stage, unless you change the Format, will map "" to NULL when reading the text file. This can introduce NULLs that you weren't expecting.
by ray.wurlod
Thu May 20, 2004 4:40 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Abnormal Termination
Replies: 11
Views: 3573

If you reset the job after it's aborted, you sometimes get an event logged "from previous run...". This can contain additional diagnostic information.
by ray.wurlod
Thu May 20, 2004 4:40 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Abnormal Termination
Replies: 11
Views: 3573

Delete anything you don't need from the disk? :P

In particular, clean up the file system referred to by the UVTEMP configuration parameters, anything old in &PH&, any scratch space your routines use. Purging log files of old entries can help, too.
by ray.wurlod
Thu May 20, 2004 4:38 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Can we use a BCP Load to load data into Sequential Files
Replies: 3
Views: 827

But then you wouldn't need DataStage. You could, of course, use DataStage to trigger the bcp -out command if needed as part of something larger. But why not use the graphical design paradigm; SELECT from your SQL Server table and write to a file through a Sequential File stage. A Sequential File sta...
by ray.wurlod
Thu May 20, 2004 4:28 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Database options: Oracle vs. SQL Server
Replies: 6
Views: 1322

You're hoping to move to UNIX. SQL Server doesn't operate on UNIX. Does that make the choice easier? Oracle is WAY more expensive than SQL Server. Dare I suggest, if what you're doing is a star schema design (which all good DWs should be), that you investigate Red Brick Warehouse from IBM? Red Brick...
by ray.wurlod
Thu May 20, 2004 4:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: datastage basic looping csv file
Replies: 9
Views: 6762

That's not how I understood the original problem. I thought you wanted the highest (or last) NEW for every OLD. That should work through an Aggregator. You have a more complex requirement, which would need to be solved differently that the way I did it. (Mine is on version 7.0; I'll need to replicat...
by ray.wurlod
Thu May 20, 2004 4:03 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Result of a division
Replies: 4
Views: 1747

What are the data types of A and B?
by ray.wurlod
Wed May 19, 2004 11:22 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Dynamic Output File name
Replies: 6
Views: 2525

And, if you do that, you can use UNIX commands to generate a file name that includes the sequence.

Code: Select all

touch myfile_`cat sequencefile`.txt
Yay!
It follows that you can use the same trick with dates and other bits of file names.
by ray.wurlod
Wed May 19, 2004 11:19 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Server Jobs to Parallel Jobs Conversion
Replies: 4
Views: 2790

It is not possible to convert.
Under certain circumstances, which you will find documented in Parallel Job Developer's Guide, you can encapsulate server jobs in Shared Containers and include those in Parallel jobs.
by ray.wurlod
Wed May 19, 2004 8:11 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Empty String in Hash File
Replies: 2
Views: 790

It may not be an empty string; it may be a NULL. You'll have to look at the job that loads the hashed file to determine this. Remember that the default behaviour of a sequential file stage is to convert "" to NULL; you override this default on the Format tab on its Outputs tab. The representation of...
by ray.wurlod
Wed May 19, 2004 4:17 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Removing (,/ -) from the phone column
Replies: 24
Views: 6111

No.
When the server job is compiled, the definition of the Transform becomes inline code.
This can be verified by inspecting the code generated from the Transformer stage that uses the Transform, which is in the RT_BPnnn directory in your project (where nnn is the job number from DS_JOBS).
by ray.wurlod
Wed May 19, 2004 4:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: VB activating job ... example needed
Replies: 5
Views: 1100

The Command object can execute any command that you could execute at TCL. To start a DataStage job from TCL the command is DSD.RUN. Search the Forum for examples of the use of the command. Look in a PORT.STATUS report for examples that are actually running. The Command object has few properties and ...