Search found 53125 matches

by ray.wurlod
Thu Sep 25, 2008 9:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Row counts
Replies: 7
Views: 1578

Code: Select all

SELECT SCH,CLAS,STDU,COUNT(*) T0FLAG
FROM #schema#.tablename
WHERE FLAG = 0
GROUP BY SCH,CLAS,STDU
UNION
SELECT SCH,CLAS,STDU,COUNT(*) T1FLAG FROM #schema#.tablename
WHERE FLAG = 1
GROUP BY SCH,CLAS,STDU ;
by ray.wurlod
Thu Sep 25, 2008 9:19 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Getting Handle of Job Controller
Replies: 6
Views: 2483

We have one particularly useful pair of routines here that can log a message or a warning in the controller's job log. We use the former to capture gross elapsed timing of a job that is run in a loop to process data for different time periods. That way there's a nice adjacent summary in the job sequ...
by ray.wurlod
Thu Sep 25, 2008 9:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Row counts
Replies: 7
Views: 1578

Do it in extraction SQL with GROUP BY and COUNT and WHERE.

This way DataStage won't be required to process nearly as many rows and will therefore finish faster.
by ray.wurlod
Thu Sep 25, 2008 9:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Getting Handle of Job Controller
Replies: 6
Views: 2483

Once you have the controller name use DSAttach() to establish a handle to it. Don't forget to DSDetach() once you're done with it.
by ray.wurlod
Thu Sep 25, 2008 8:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Is there a HostView in v8 Designer?
Replies: 4
Views: 1092

Probably not. The Information Server web console gives you overview of all DataStage projects (even if they're on multiple servers) but does not, as far as I am aware, give you the ability to invoke DataStage. I would be very surprised if it did, running inside a browser. But stranger things have ha...
by ray.wurlod
Thu Sep 25, 2008 8:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: RT_LOG149
Replies: 6
Views: 1468

Impossible to tell now that you've destroyed the evidence.
by ray.wurlod
Thu Sep 25, 2008 4:54 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Import of modified table structure
Replies: 1
Views: 870

That is a deficiency in DataStage metadata management, in my opinion. The only way to reconnect the linkages is manually (or build a tool, which is the same thing) and that, in turn, requires a systematic methodology of preserving the linkage information before importing the new table definition.
by ray.wurlod
Thu Sep 25, 2008 3:17 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Testing for a numbers stored Char(18) field
Replies: 6
Views: 1604

With what character are the Char(18) fields padded?
by ray.wurlod
Thu Sep 25, 2008 3:12 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Regd An Error Calling a Routine
Replies: 7
Views: 1692

Hint: your routine CalculateDate does not return 0.
by ray.wurlod
Thu Sep 25, 2008 3:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Deleting rcords from table based on incoming column value
Replies: 1
Views: 936

Deliver the value of A on the link as a column called B and marked as Key.

Code: Select all

DELETE FROM table_name WHERE B = :1
by ray.wurlod
Thu Sep 25, 2008 3:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: One Unique surrogate key for all input records.
Replies: 7
Views: 1526

I have not done this and don't propose to any time soon but, in theory, if all the Surrogate Key Generator stages use the same state file then "sharing" should be possible, and there ought to be no need to restrict execution to sequential mode. Try it in a small sample job and let us know the outcome.
by ray.wurlod
Thu Sep 25, 2008 3:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Can Zeke detect a job aborted within a sequence?
Replies: 7
Views: 6321

How is Zeke detecting the job status?

Change -wait to -jobstatus then the exit status of dsjob should be the same as that of the job.
by ray.wurlod
Thu Sep 25, 2008 3:02 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Error while writing to Seq file
Replies: 5
Views: 3014

Check for terminators IN THE DATA causing this split. You may need to change your metadata to set the "contains terminators" for that field.
by ray.wurlod
Thu Sep 25, 2008 2:57 pm
Forum: General
Topic: Record Delimiter
Replies: 6
Views: 2236

If you have this character AND a linefeed, then this character is the "final delimiter" and the linefeed is the record delimter ("UNIX style").
by ray.wurlod
Thu Sep 25, 2008 6:24 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: SORT:Restrict Memory Usage
Replies: 5
Views: 5819

The same happens as described for temporary space. You just get more - or differently sized - temporary sort files on disk.