Search found 53125 matches

by ray.wurlod
Sun Jun 19, 2011 3:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: data not inserted in target database
Replies: 10
Views: 2172

Of course he can't, because he has not idea how you're using this function nor does he have any idea - apart from what you posted earlier and which both he and I addressed - what the values supplied to that function might be.
by ray.wurlod
Sun Jun 19, 2011 3:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Data Stage Input Source Query Failed to Fetch data
Replies: 1
Views: 1082

The database manager is not able to accept new requests.

This is an issue in the database manager, not in DataStage. In short, it's overloaded. Discuss with your DBA about resource allocation or timing.
by ray.wurlod
Sun Jun 19, 2011 3:46 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Data conversion error
Replies: 12
Views: 6848

yyyy-mm-dd is 10 characters long, not 8.

You need to re-examine your metadata.
by ray.wurlod
Sun Jun 19, 2011 6:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: vertical pivot for variable number of rows and columns
Replies: 7
Views: 3591

Not really. Within the loop, use the Field() function to extract the nth field where n = @ITERATION (the current value of the loop counter). svDelimitedFieldCount = DCount(InLink.DelimitedField, ",") Loop While @ITERATION <= svDelimitedFieldCount lvNthField = Field(InLink.DelimitedField, &...
by ray.wurlod
Sun Jun 19, 2011 12:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Surrogate Key Generator, prefixing Surrogate Key
Replies: 12
Views: 3999

Why not just have the Sequential File stage generate the row number? That would serve as the key you seek.
by ray.wurlod
Sun Jun 19, 2011 12:07 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: vertical pivot for variable number of rows and columns
Replies: 7
Views: 3591

Yes. Stage variables are evaluated before loop variables, so you could count the delimiters into a stage variable then build your loop exit condition based on @ITERATION being less than that value.
by ray.wurlod
Sat Jun 18, 2011 8:56 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: data not inserted in target database
Replies: 10
Views: 2172

Didn't notice any commas in hargun's example, but the same is true in DataStage. If there are commas, they need to be removed.
by ray.wurlod
Sat Jun 18, 2011 5:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: data not inserted in target database
Replies: 10
Views: 2172

Trimming the leading currency symbol should suffice before feeding the value to a StringToDecimal() function.
by ray.wurlod
Sat Jun 18, 2011 5:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Enterprise stage (Output reject records option)
Replies: 5
Views: 2526

Reject link will capture ALL records rejected by Oracle. You can add a column containing sqlcode to the reject link to get Oracle's reason for rejecting the record.
by ray.wurlod
Fri Jun 17, 2011 4:08 pm
Forum: Enhancement Wish List
Topic: Environment Variable Job Parameters
Replies: 0
Views: 7179

Environment Variable Job Parameters

I would like to have the ability to use the special token $PROJDEF irrespective of the parameter type - for example Date and List types.
by ray.wurlod
Fri Jun 17, 2011 4:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to setup Tenacity and Sleep values for TERADATA
Replies: 3
Views: 1720

Who said?
<rant>Resist stupid requirements!</rant>

If these can be job parameter values you could create environment variables in the project. Then add the environment variables to jobs with default value of $PROJDEF.
by ray.wurlod
Fri Jun 17, 2011 4:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: calling a .txt or .sql file in ODBC stage
Replies: 3
Views: 1569

What does "call" mean in this context? For example, if you try to invoke a txt file from a CMD shell, nothing happens.
by ray.wurlod
Fri Jun 17, 2011 4:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: converting a single row to multiple rows
Replies: 5
Views: 2244

Use a Pivot stage (or a PXPivot stage).
:wink:
by ray.wurlod
Fri Jun 17, 2011 4:03 pm
Forum: General
Topic: Test -s: Handle Unix Command Error, CC=1, and CC=0
Replies: 5
Views: 1409

If you mean "leads to a Sequencer" you've got it.
by ray.wurlod
Fri Jun 17, 2011 4:01 pm
Forum: General
Topic: Stages, field names and job parameters
Replies: 5
Views: 1984

Properties are usually to be found in the properties tab for the stage (not the Columns tab). There are some exceptions, such as the Format tab in the Sequential File stage, and non-standard stage editors such as Lookup and Transformer stages.