Search found 53125 matches

by ray.wurlod
Fri Oct 05, 2007 7:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: varchar60 to varchar40
Replies: 7
Views: 1306

I'd probably use Left(InLink.TheString,40) - since I think it's better "self documentation" - but only after consulting the business to obtain a business rule to govern the situation that Len(InLink.TheString) > 40.
by ray.wurlod
Fri Oct 05, 2007 7:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to get EBCDIC HEX(15) as record delimeter in SeqFile
Replies: 1
Views: 829

Specify the field delimiter character as \x15 or \021
by ray.wurlod
Fri Oct 05, 2007 2:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: char to varchar
Replies: 4
Views: 1867

The three-argument version of Trim() will remove them.

Performance Tip
Initialize a stage variable to Char(0) and do not derive it. That way the Char() function is evaluated only once per run, rather than once per row.

Code: Select all

Trim(InLink.TheString, svNUL, "A")
by ray.wurlod
Fri Oct 05, 2007 2:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: @NULL in PX
Replies: 2
Views: 1147

SetNull() in Transformer stage, make_null() in Modify stage.
by ray.wurlod
Fri Oct 05, 2007 2:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: datastage
Replies: 13
Views: 25339

Use a Row Generator to generate test data. That's what it's for!
by ray.wurlod
Fri Oct 05, 2007 2:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Concatenating Two datasets
Replies: 8
Views: 3310

You can not do what you seek to do, without forcing the format (record schema) to be that of the target Data Set. Once you have done that, you can use a Funnel stage.
by ray.wurlod
Fri Oct 05, 2007 2:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Change DSHostName Value
Replies: 1
Views: 959

Don't have an answer to that, Keith. I usually use an Execute Command activity to execute hostname (which works on both UNIX and Windows).
by ray.wurlod
Fri Oct 05, 2007 2:24 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Types of Stages in Datastage
Replies: 1
Views: 1835

Go into the Stage Types folder in your Repository and inspect the properties of each stage type. It will tell you there whether the stage is active, passive or other.
by ray.wurlod
Fri Oct 05, 2007 2:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error in View Data
Replies: 3
Views: 1450

In both cases disable operator combination and re-run so you can determine which actual operator (stage) is having the problem. The message telling us that the combined operator controller failed is singularly unhelpful for diagnostic purposes.
by ray.wurlod
Fri Oct 05, 2007 2:19 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Overflow in Director Monitor
Replies: 2
Views: 1092

Does just the Monitor get hosed, or the entire Director? Does it close, or simply lose focus? If it actually aborts, is there an error message (and, if so, what is it)?

That the number is near 2^31 suggests that somewhere an Int is involved. You need to report this through your support provider.
by ray.wurlod
Fri Oct 05, 2007 2:17 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to create sequence number in Datastage px
Replies: 2
Views: 2734

In particular you can Search the forum. This question has been answered a number of times, as recently as last week.
by ray.wurlod
Fri Oct 05, 2007 2:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Validate option in job activity stage
Replies: 3
Views: 1016

Validate is a run mode that does everything except process rows. It opens files, establishes connections to data, gets SQL prepared and so on.

I find it a useful thing to do to test that job parameters work properly after deploying to new environments (such as test or production).
by ray.wurlod
Fri Oct 05, 2007 2:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Concatenating two Input Datasets
Replies: 1
Views: 754

If they don't use the same format, what is the structure of the target?

The solution will probably involve two jobs, or two streams of activity within one job if the target rows are independent.

You've marked the thread as Resolved. How did you solve it?
by ray.wurlod
Fri Oct 05, 2007 2:44 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sequence Number
Replies: 14
Views: 2797

Of course using an Oracle sequence is a possibility. However, there is a risk of introducing a bottleneck if the sequence is not set up to deliver blocks of values.

But the Original Poster seemed to be asking how to use (initialize) the Surrogate Key Generator stage.
by ray.wurlod
Fri Oct 05, 2007 2:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading SQL from file to extract data from Oracle Tables
Replies: 19
Views: 4627

OK, we've proven that the SQL is being passed to the job successfully. The next step is to establish that the SQL is being passed from the job to Oracle. You will need to enlist the help of your DBA to monitor the connection and record the SQL that was actually received by the Oracle database server...