Search found 53125 matches

by ray.wurlod
Wed Aug 10, 2005 11:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: File Locking for Key Management
Replies: 19
Views: 4166

Chester has claimed that a call from Instance2 causes Instance1 to abort. It shouldn't. I am awaiting his design and code to be posted.
by ray.wurlod
Wed Aug 10, 2005 11:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rounding of Numeric Data
Replies: 2
Views: 1598

From memory (I don't have access to DataStage at the moment - I DO do other things!), the AsInteger() function would come close. Or, if it exists, something like Int32_from_Decimal() in a Modify stage.
by ray.wurlod
Wed Aug 10, 2005 10:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: determining job parameters at runtime
Replies: 7
Views: 2236

Please note that BASIC-based techniques can not be use in a parallel job in an MPP (cluster) environment - only in an SMP (share everything) environment. That said, however, you can use job sequences (which are BASIC-based) in either environment; however, these can operate only on the conductor node...
by ray.wurlod
Wed Aug 10, 2005 10:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage returns fake return code
Replies: 18
Views: 6528

True, it was introduced in version 7.x, so you need to interrogate tha job status after the job has completed successfully. Typically this will be from the job control routine from which you requested execution of the job run. Or upgrade.
by ray.wurlod
Wed Aug 10, 2005 7:30 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: check constraint (SYS_C00380582)
Replies: 12
Views: 2732

SYS_ just means that whoever created the constraint was too lazy or indifferent (apathetic?) to give the constraint a name. This makes the database that little bit less easy to maintain, imho. In mitigation, it is also true that not every database allows NOT NULL constraints to be named.
by ray.wurlod
Wed Aug 10, 2005 7:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage returns fake return code
Replies: 18
Views: 6528

Code: Select all

JobStatus = DSGetJobInfo(DSJ.ME, DSJ.JOBINTERIMSTATUS)
by ray.wurlod
Wed Aug 10, 2005 7:25 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DSGetJobInfo for current job always return 0
Replies: 1
Views: 1138

Where are you executing this code? If - as seems to be the case - you're executing it from within a routine - even an after-job routine - the status of the job will always - necessarily - be 0 ("running"). You can, in an after-job subroutine, use the "interim status" argument to DSGetJobInfo. Resear...
by ray.wurlod
Wed Aug 10, 2005 6:24 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: File Locking for Key Management
Replies: 19
Views: 4166

Post your code and an outline of your job design (CopyOfCopyOfCopyOf... ?!!)
by ray.wurlod
Wed Aug 10, 2005 6:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: check constraint (SYS_C00380582)
Replies: 12
Views: 2732

Not in all databases. UniVerse, for example, differentiates NOT NULL, NOT EMPTY, UNIQUE, ROWUNIQUE (for multi-valued data), CHECK and FOREIGN KEY constraints. Technically (SQL standards) a CHECK constraint is one where an SQL expression is satisfied by the row. I guess "column IS NOT NULL" could be ...
by ray.wurlod
Wed Aug 10, 2005 6:18 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup Stage
Replies: 4
Views: 1507

If you're on 7.5 you can derive output columns in a Lookup stage. However I don't think it's quite flexible enough to do what you require. I think you'll need to follow it with a Transformer or Switch stage. A Transformer stage offers the advantage of having stage variables available.
by ray.wurlod
Wed Aug 10, 2005 3:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Note: Sequencer 'Sequencer_8' was entered, but never exited
Replies: 8
Views: 12190

Sequencer_5 is an "All" sequencer, yet all its inputs can never be true simultaneously. A job can not, at the same time, have three different exit status values.
by ray.wurlod
Wed Aug 10, 2005 3:26 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reset Job if necessary
Replies: 3
Views: 1082

You can use job control code.
Create a job sequence with a Job activity set to "reset if required then run", compile it, and examine the generated job control code.
by ray.wurlod
Wed Aug 10, 2005 3:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Info type message
Replies: 2
Views: 1096

Modify the SQL so that data aren't truncated. For example use a SUBSTRING function on the SELECT clause.
by ray.wurlod
Wed Aug 10, 2005 3:22 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: check constraint (SYS_C00380582)
Replies: 12
Views: 2732

However, the OP stated that this time it's a CHECK constraint. Get help from your DBA - there is a system table recording all constraints that you can use to determine the constraint rule and the table on which it is applied.
by ray.wurlod
Wed Aug 10, 2005 3:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: File Locking for Key Management
Replies: 19
Views: 4166

FILELOCK supports an optional LOCKED clause to handle the situation that a file lock can not be obtained. If there is no LOCKED clause, the application waits indefinitely until the block is released. Research the FILELOCK statement in the DataStage BASIC manual. But, as Kim said, you don't need to l...