Search found 53125 matches

by ray.wurlod
Tue Apr 15, 2008 6:39 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Finding max record number
Replies: 8
Views: 1554

You know, I started to reply in terms of record count, and somehow switched to maximum value. There should be no difficulty initializing a stage variable to 0 and adding 1 to it for each row processed, then summing and/or maxing these downstream after collecting onto a single stream.
by ray.wurlod
Tue Apr 15, 2008 5:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Project deleted but still exists
Replies: 10
Views: 2673

Bad advice, not least because you can not simply delete entries from UV_SCHEMA and secondarily because a semi-colon terminator is required for each DataStage/SQL statement. And, third, UV.ACCOUNT is not accessible, by default, from the Administrator client without creating a pointer to it. Checking ...
by ray.wurlod
Tue Apr 15, 2008 4:59 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Finding max record number
Replies: 8
Views: 1554

You can find the maximum on each partition. This example is for integer. Initialize stage variable svMaxValue to -2147483648 (for VarChar initialize to ""). Then assign its value as If InLink.TheColumn > svMaxValue Then InLink.TheColumn Else svMaxValue Downstream in the job, you bring these partitio...
by ray.wurlod
Tue Apr 15, 2008 4:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Getting the very first event of the job log
Replies: 3
Views: 917

Why not use DSGetJobInfo() to get the parameter names and DSGetParamInfo() to get the parameter values?

If you insist on using the log, investigate the DSGetNewestLogId() function, in particular the InfoType argument to get a "Started" event.
by ray.wurlod
Tue Apr 15, 2008 4:54 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: add months
Replies: 4
Views: 1538

Your time dimension table might have a column PREV_MONTH_DATE. Or, if it has monthly granularity and has been created with a surrogate key with an unbroken integer sequence, then you can take the key one smaller than that for the current month.
by ray.wurlod
Tue Apr 15, 2008 4:50 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: CPU CYCLES
Replies: 18
Views: 3158

The rule of the other thumb is to have some smaller configuration files for running multiple small jobs at the same time.
by ray.wurlod
Tue Apr 15, 2008 3:40 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: add months
Replies: 4
Views: 1538

The optimum solution is a time dimension table with month granularity.
by ray.wurlod
Tue Apr 15, 2008 3:40 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: CPU CYCLES
Replies: 18
Views: 3158

You "heard" did you? Where?

Read what I wrote again (in both earlier posts on this thread). The answer to your most recent question is in there, if you give it some thought.
by ray.wurlod
Tue Apr 15, 2008 3:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Project deleted but still exists
Replies: 10
Views: 2673

Project was incompletely deleted. Does it show up on the list of projects in attach dialogs? Does reference to the project appear in the UV_SCHEMA table?
by ray.wurlod
Tue Apr 15, 2008 3:34 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DSX stage names to meaningful stage names
Replies: 10
Views: 9841

CType or OLETYPE is the name of the class from which the object (stage, link, table definition, etc.) was instantiated. Try this query to get a list of job object class names. SELECT DISTINCT OLETYPE FROM DS_JOBOBJECTS; These are NOT stage names. Stage names are allocated automatically as stages are...
by ray.wurlod
Tue Apr 15, 2008 3:30 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Remote Server
Replies: 14
Views: 4857

There seems to be a "." character on the end of the SERVICENAME entry. Can you please verify?
by ray.wurlod
Tue Apr 15, 2008 3:28 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: filter command in the sequential stage
Replies: 8
Views: 1655

Leave off the redirection. The stage reads stdout of the filter command. If you redirect the stdout stream there is nothing for the stage to read.

Therefore you can even leave out the cat command, and specify the source file name in the sort command itself.
by ray.wurlod
Tue Apr 15, 2008 3:24 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DataStage Server Engine - UniVerse
Replies: 31
Views: 18204

Except that UniVerse was first designed as an Application Development environment (more than just a database environment), I believe Ray's answer addresses all the points in your most recent post. If they don't, all the answers are to be found in the UniVerse documentation. Just be aware that few, i...
by ray.wurlod
Tue Apr 15, 2008 3:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: filter command in sequentiak file stage
Replies: 3
Views: 1224

Does

Code: Select all

ls -1 aud_d-* | wc -l
work?
by ray.wurlod
Tue Apr 15, 2008 3:18 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: AS400 & Date format YYYYMMDD
Replies: 2
Views: 1182

Please post how this was Resolved. Obviously you found what it was that you did. But what was it?