Search found 53125 matches

by ray.wurlod
Sat Feb 21, 2009 2:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic required
Replies: 9
Views: 3073

Arbitrary levels of recursion aren't easy to do in any ETL tool and don't really belong there (in the same way that RANK doesn't). These really are display functions, not transformation functions.
by ray.wurlod
Sat Feb 21, 2009 2:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Format output of a date
Replies: 10
Views: 2814

Welcome aboard.

What exactly IS "%mmmm" ? I don't understand what you mean by it.
by ray.wurlod
Fri Feb 20, 2009 5:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How much time CLEAR command takes to clear RT_LOG of 2 GB
Replies: 7
Views: 2950

Subtract the time when the command is issued from the time that the command finishes, and you will have your answer.
by ray.wurlod
Fri Feb 20, 2009 5:08 pm
Forum: General
Topic: Determining if sequential file has correct number of columns
Replies: 6
Views: 1531

1. That's the kind of thing I do for a living. See this page for example. 2. It's rarely a safe assumption that any answer relating to parallel jobs applies to server jobs. 3. Where's the business case? IBM don't do anything that won't turn a dollar. 4. No more than in earlier versions. Even the pos...
by ray.wurlod
Fri Feb 20, 2009 5:02 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Large routine arguments
Replies: 2
Views: 1148

Nah. All arguments are passed by reference - that is, the address of the string in memory is all that's passed to the routine. That was, of course, a slight lie. What is actually passed is a DATUM, an internal, 16-byte structure that includes the address and also other information about the string, ...
by ray.wurlod
Fri Feb 20, 2009 2:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Is it Possible to Call DataStage Basic in Custom Routine?
Replies: 4
Views: 2256

EBCDIC() is an internal function in the language, doesn't need DEFFUN.

WRITEBLK is a statement, not a function. You write precisely the byte values that are in the variable. No line terminator character is written; you must organize that yourself.
by ray.wurlod
Fri Feb 20, 2009 12:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Can DataStage routines write binary files?
Replies: 8
Views: 4938

There's no OPENBIN, you just use OPENSEQ as normal but you write blocks of bytes using WRITEBLK rather than writing lines using WRITESEQ. You still need to close the file using CLOSESEQ.
by ray.wurlod
Fri Feb 20, 2009 12:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: is data connection disable
Replies: 1
Views: 790

I'm not really sure what you're asking here. Yes you can create a Connector for SQL Server, and you can load that Connector with a Parameter Set containing all the parameters you require. But "like we used to do?" - this is new technology in version 8.0.
by ray.wurlod
Fri Feb 20, 2009 12:18 pm
Forum: General
Topic: Job already exists in this project - tried DS.REINDEX.ALL
Replies: 5
Views: 5772

You need to be attached to the project directory to execute DS.REINDEX, not to the engine's bin directory. You also need to have executed the dsenv script before executing uvsh.
by ray.wurlod
Fri Feb 20, 2009 12:58 am
Forum: General
Topic: Determining if sequential file has correct number of columns
Replies: 6
Views: 1531

It is easy enough to write such a function. Probably many have done so.
by ray.wurlod
Thu Feb 19, 2009 11:33 pm
Forum: General
Topic: Determining if sequential file has correct number of columns
Replies: 6
Views: 1531

Resist stupid requrements!

Let the metadata do it for you.
If you must, define a fifth field (VarChar). If it is populated, then the line has too many fields.
Too few is a harder problem if field #4 can legitimately be empty.
by ray.wurlod
Thu Feb 19, 2009 8:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Enterprise Stage Load Error
Replies: 3
Views: 2413

Talk with your Oracle DBA about the maximum number of sessions permitted from the one client. In this case the Oracle client is your DataStage job (your DataStage server and any other hosts named in the configuration file).
by ray.wurlod
Thu Feb 19, 2009 8:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: comparing varchar fields
Replies: 8
Views: 2305

In server jobs and job sequence expressions, yes. In parallel jobs no - you need to convert to any numeric data type before arithmetic can be performed.
by ray.wurlod
Thu Feb 19, 2009 7:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: comparing varchar fields
Replies: 8
Views: 2305

Ask yourself two questions.

What is the ASCII/Unicode codepoint for "."?

How are strings of characters compared by a computer?
by ray.wurlod
Thu Feb 19, 2009 3:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Is Surrogate Key Generator stage slow?
Replies: 5
Views: 2652

The cause is purely and solely having to wait for Oracle to respond.

You can get way more speed using a state file, which you could initialize from your Oracle sequence then update the sequence once the job had processed all the rows.