Search found 296 matches

by throbinson
Tue Feb 03, 2009 6:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: problem with special characters while reading from AS400
Replies: 3
Views: 1908

Craig must be on vacation. What is athe ASCII value of the special characters you want to reject? Find that out and only write records that don't contain them. Write those that do to the reject link. '?' just means the character is unprintable. You need to replace the '?' with the ASCII value (CHAR(...
by throbinson
Fri Jan 30, 2009 7:40 am
Forum: General
Topic: Need to mail attached file only when data is present
Replies: 2
Views: 1064

In UNIX script interrogate for a file that has more than one line, like;
LINECOUNT=`/usr/bin/wc -l <file>`
if [[ $LINECOUNT -gt 1 ]]; then
mail it.
fi
by throbinson
Fri Jan 30, 2009 6:16 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Array Size in OCI Stage, Performance Tuning
Replies: 2
Views: 4749

You've got a single job with 25 OCI stages all retrieving data? Hunh. RE#4. Arraysize. I did something really strange, I looked it up! Too high and you'll blow the buffer and the job will fail. This is dependent on the number of columns and their datatype sizes. Putting aside your fundamental questi...
by throbinson
Fri Jan 30, 2009 5:25 am
Forum: General
Topic: How can I log Errors / Exceptions to a file?
Replies: 8
Views: 2598

Example;

Code: Select all

vJOB_STATUS	= DSTranslateCode(DSGetJobInfo(DSJ.ME, DSJ.JOBINTERIMSTATUS))
			* The interim status of the just completed job itself
IF vJOB_STATUS = "Finished OK"
by throbinson
Thu Jan 29, 2009 3:50 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformer constraints with multiple values?
Replies: 11
Views: 7420

I've used it for two digit codes. The trick was inserting a character that wouldn't appear in the field like this; INDEX('12|23|45|XY',LINK.FIELD,1). You'll get a non-zero return for 12, 23, 45, and XY codes. You can go bigger I'm sure, you just have to make sure that a field doesn't show up as a su...
by throbinson
Thu Jan 29, 2009 2:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformer constraints with multiple values?
Replies: 11
Views: 7420

Boom! I think I originally got it from a DSGuruB post.
by throbinson
Thu Jan 29, 2009 2:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformer constraints with multiple values?
Replies: 11
Views: 7420

And yet Index will work on more then one character. Advantage -- Index!
by throbinson
Thu Jan 29, 2009 2:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformer constraints with multiple values?
Replies: 11
Views: 7420

hunh? I just tried it. works great. What doesn't work about it? If 1 or 2 or 3 is in LINK.FIELD the result will be non-zero.
by throbinson
Tue Jan 27, 2009 11:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: runtime column propagation on Oracle enterprise output
Replies: 2
Views: 1252

I have done it with the Teradata API stage but it is definitely a case of the operation was a success but the patient died. I pre-built the SQL as a parameter based on a job that reads the system tables. This parm was passed to the Upsert job in the custom SQL.
by throbinson
Sun Jan 25, 2009 4:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Setting a Teradata primary index for a write replace stage
Replies: 11
Views: 5741

You mean a Primary Key. A Primary Index is how the data gets hashed across AMPS in a Teradata DBMS. They can be two very different things.
by throbinson
Sun Jan 25, 2009 1:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Setting a Teradata primary index for a write replace stage
Replies: 11
Views: 5741

How about a Unique Secondary Index definition in the Close Command? Why the requirement for a UPI?
by throbinson
Fri Jan 23, 2009 2:17 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: warning on insert decimal with oracle stage load append mode
Replies: 4
Views: 3063

An Oracle NUMBER without precision or scale (A floating point number) is interpreted by Datastage as DECIMAL(38,10). Also any function call resulting in a numeric result. One CANNOT change this from the column grid as any metadata you define in the job will be overridden when the stage executes. Dat...
by throbinson
Fri Jan 23, 2009 1:28 pm
Forum: General
Topic: Datastage market condition
Replies: 7
Views: 3538

If you're good, money is easy.
-- Eddie Felsen to the Cruiser.
by throbinson
Fri Jan 23, 2009 7:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: 'Parallel job reports failure (code 139)
Replies: 6
Views: 4335

What's the Config file used in the failed run got to say? Where are the nodes pointing for resource and scratch disks? The config file used for the failed run will be in the director logs and will list the directories.