Search found 4992 matches

by kcbland
Tue Jul 25, 2006 6:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append in Oracle Bulk loading
Replies: 13
Views: 2974

And of course I agree 100% with Ray's last post, as I don't use any of the bulk loader stages myself.
by kcbland
Mon Jul 24, 2006 5:36 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Timestamp datatype
Replies: 7
Views: 1809

If this is your DML:

Code: Select all

insert into datefield values 
TO_timestamp(:7, 'YYYY-MM-DD HH24:MI:SS:FF'),


then you have a trailing comma
by kcbland
Mon Jul 24, 2006 4:54 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Timestamp datatype
Replies: 7
Views: 1809

It appears you are not passing a properly formatted timestamp string as well as your user-defined SQL does not mask to 6 decimal places.
by kcbland
Mon Jul 24, 2006 4:52 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append in Oracle Bulk loading
Replies: 13
Views: 2974

It's like: What do you prefer, a kick in the head or a punch in the gut? Both stages suck, which one sucks less for your situation? With the ORABULK stage you will have to initiate the sqlldr command line manually. But, you can add switches to sed the CTL file to your liking.
by kcbland
Mon Jul 24, 2006 4:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append in Oracle Bulk loading
Replies: 13
Views: 2974

I'm confused, I thought you wanted a reusable CTL file for "on-the-fly" loading. If you have the ORABULK stage just use the APPEND option in the load properties.
by kcbland
Mon Jul 24, 2006 4:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Timestamp datatype
Replies: 7
Views: 1809

Are you using the OCI stage with a 9i or 10g database? If so, the generated SQL should work fine.
by kcbland
Mon Jul 24, 2006 4:11 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append in Oracle Bulk loading
Replies: 13
Views: 2974

Programmatically open the CTL file, go to the line that says "INSERT", and change it to "APPEND".
by kcbland
Mon Jul 24, 2006 3:42 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append in Oracle Bulk loading
Replies: 13
Views: 2974

You mean using ksh or DS Basic from a before/after routine call? Seems straightforward to me, pick your poison...
by kcbland
Mon Jul 24, 2006 2:34 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get first 2 lines of a file
Replies: 5
Views: 1357

Thanks for sharing, since you did all of the work, your solution is here for everyone. Had I posted it, I would have marked it Premium. :wink:
by kcbland
Mon Jul 24, 2006 1:00 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: passing a value in parameter
Replies: 3
Views: 1047

You need to store your sequence number somewhere when the job finishes and then the next time the job runs it knows where to get the sequence value. Consider using job control to feed it to the job, or use a stage variable and in the initialize cell do a routine call to go fetch the starting value.
by kcbland
Mon Jul 24, 2006 12:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get first 2 lines of a file
Replies: 5
Views: 1357

Since you're on Windoze you can't do a "head -n2 yourfile" unix command. You're going to having to write your own. For small files you could just use DSExecute API with command "type yourfile" and then use the first two rows in the screen output variable. But for large files you might as well write ...
by kcbland
Mon Jul 24, 2006 12:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unexpected Error
Replies: 4
Views: 1059

The compiled routine is requiring 3 arguments per the message. Check the routine and if necessary recompile it. See if the job complains again after you recompile the routine. If this is a standard before/after Routine there are only two arguments allowed, it it's a custom Universe function then mor...
by kcbland
Sun Jul 23, 2006 9:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: sending mails by pickuping from Teradata Database
Replies: 4
Views: 987

Emails are easy in unix, just use mailx and pass it the space separated list of addresses.
by kcbland
Sun Jul 23, 2006 9:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Key points for PX development
Replies: 7
Views: 1551

1. Thou shalt remember that PX comes with Server as well, so decide when to do it as pure PX and not. 2. Thou shalt spend remember not to hog the server nodes until running full stress tests. 3. Thou shalt use a wimpy node pool during minor test runs so that Director doesn't crawl and (-14) errors d...
by kcbland
Sun Jul 23, 2006 9:19 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to have multiple conditions in unix
Replies: 4
Views: 1009

Why use bourne shell? You can use korn shell and have lots more functionality. Just stick this as the first line in your script and it will work under the korn shell interpreter:

Code: Select all

#!/bin/ksh