Search found 53125 matches

by ray.wurlod
Thu Nov 11, 2004 9:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Small Integer to Date
Replies: 8
Views: 3378

If you're going to do a lot of work in PX do take the trouble to learn C or C++. They are radically different languages from DataStage BASIC; for a start, the C languages are very strict about data types and variable declaration; BASIC doesn't get concerned about either. BASIC does not use pointers;...
by ray.wurlod
Thu Nov 11, 2004 9:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: SQL0911
Replies: 13
Views: 5801

Dump it to disk (text file) in an intermediate stage, then read it from there. At the end of dumping any SELECT locks can be released.
by ray.wurlod
Thu Nov 11, 2004 3:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Small Integer to Date
Replies: 8
Views: 3378

And the "%" means add leading zeroes as a mask. Another way to write this would be to use zero as a background character. Fmt(YR,"2'0'R") : "-" : Fmt(MO,"2'0'R") : "-" : Fmt(DA, "2'0'R") The zero has to be quoted to differenti...
by ray.wurlod
Thu Nov 11, 2004 3:31 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sequence logic
Replies: 5
Views: 1190

Take a second output from each Job Activity with a "Failed" trigger.

All of these go to a single "Any" sequencer.

The output of the sequencer runs into a single Notification Activity that can report that "something" has failed, but not more exactly than that.
by ray.wurlod
Thu Nov 11, 2004 3:26 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Hash File Lookup
Replies: 16
Views: 7928

Using a Hashed File stage you can only perform a key-based lookup.
You can perform a reverse lookup against a hashed file stage using a UV stage, but will need some tricky SQL to handle the possibility of NULL (lots of OR conjunctions). And it won't be fast unless you index the non-key columns.
by ray.wurlod
Thu Nov 11, 2004 3:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: split city and state data from one filed into two fields
Replies: 8
Views: 1760

If you really want to do it in DataStage you can, though I'd fully support your using Quality Stage - after all, "bucketing" address components is one of the things it does supremely well. For those who don't have Quality Stage... A "final delimited field" function is handy thing to have in one's to...
by ray.wurlod
Thu Nov 11, 2004 3:13 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to split single row into multiple rows in datastage
Replies: 3
Views: 2590

Pivot stage is exactly the right tool for your stated requirement.
The examples in the manual (pivot.pdf) will show you exactly how to achieve it.
by ray.wurlod
Thu Nov 11, 2004 3:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how do i import .dsx file
Replies: 2
Views: 2695

If you got the DSX file by exporting, all the components in it are probably still in your project. When you use the Import menu in Manager, choose the "import selected" option, so that you can see what's in the DSX file prior to importing those components (and allowing you to select some, rather tha...
by ray.wurlod
Thu Nov 11, 2004 3:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: What does this mean???
Replies: 6
Views: 2420

That's known as the Old MacDonald's Farm error ([EIO] I/O error) Yes, it looks like at best file corruption, at worst hardware failure. The subroutine in RT_BP415/JOB.1433470019.DT.1330157629.TRANS1 - which is the code generated by a Transformer stage - should give you a clue as to which file was be...
by ray.wurlod
Thu Nov 11, 2004 3:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: SQLSTATE
Replies: 10
Views: 2166

Use link variables on the Output link. However these are not available until the Output link has executed its "Put" operation, so you'll need a second output link (let's say called Output2) that is executed after your Output link. db2/udb | | <lookup> | -----> Transformer --> Output | | V Output2 On...
by ray.wurlod
Thu Nov 11, 2004 2:57 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Export -- xml vs .dsx format
Replies: 15
Views: 10293

Jim, would you be prepared to share that style sheet? I was about to embark on a similar exercise! (You can email me via my profile.)
by ray.wurlod
Thu Nov 11, 2004 2:55 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Dynamic RDBMS vs. Oracle9i Stage
Replies: 8
Views: 1997

DRS is used with the Peoplesoft jobs because not all Peoplesoft customers use Oracle as their database. Indeed the DRS was specifically developed for this kind of deployment, so that the database type could be made a job parameter. The reason you should prefer DRS to the Oracle stage type is insuran...
by ray.wurlod
Thu Nov 11, 2004 2:51 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: new line generated at the end of the source file
Replies: 5
Views: 1187

MKS Toolkit spoils one sometimes! How about something like this before/after subroutine? SUBROUTINE RemoveFinalTerminator(InputArg, ErrorCode) ErrorCode = 0 OpenSeq InputArg To hFile Then * Position to a point two characters short of EOF Seek hFile,2,-2 Then * Read those two characters to m...
by ray.wurlod
Thu Nov 11, 2004 2:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to convert DATE in internal format for comparison
Replies: 5
Views: 2284

Without using a stage type that supports BASIC expressions (such as the "BASIC Transformer" stage), the parallel extender does not support the concept of an internal format for dates. You could, of course, create a buildop that uses substringing techniques to decompose the dates into "days since a c...
by ray.wurlod
Thu Nov 11, 2004 2:40 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sequential file validation question
Replies: 4
Views: 2001

You really should have either posted this on the Server forum or indicate that it's a parallel job. Which engine it is will govern the answer.