Search found 4992 matches

by kcbland
Wed Sep 13, 2006 8:56 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to write to SQL-database in a routine?
Replies: 6
Views: 2365

Which database? The easiest is to use a CALL DSExecute(...) API to run a system command, such as sqlplus, isql, sqlcmd, dbaccess, etc. Just formulate the DML or use an existing script and invoke it using the command line program. Please don't do this to avoid using an ODBC/OCI stage for loading data...
by kcbland
Wed Sep 13, 2006 7:15 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Maximum size of input text file
Replies: 5
Views: 1785

Please describe the job design, stages, etc. What if it's not stuck reading the file, but writing to the target? Is there a before/after stage/job routine call that's the true problem? Viewing the data on the Sequential file proves that the definitions are valid.
by kcbland
Wed Sep 13, 2006 7:11 am
Forum: Enhancement Wish List
Topic: Show the true value for environment variable
Replies: 5
Views: 2651

Sure, switch the job at the end. The next time the jobs come back into development for enhancement or modification, you'll switch them again, and then back again. Kind of tedious, and open for error.
by kcbland
Tue Sep 12, 2006 10:33 pm
Forum: Enhancement Wish List
Topic: Show the true value for environment variable
Replies: 5
Views: 2651

Sucks for development! If the current environment setting is not to your liking, it's more difficult to change when working on a job. It kind of renders that View Data option a little frustrating, because you have to keep pasting in overiding values.
by kcbland
Tue Sep 12, 2006 11:27 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DB2 Date Column - Displays Incorrect in view Data
Replies: 4
Views: 1181

Ahhh, the DB2 plugin. It works differently from other stages like Oracle and ODBC. If the datatype is DATE, it automatically uses ICONV inside the stage. The only way to prevent this is to switch the metadata to CHAR, which relies on the NLS setting of the database for the format, or TIMESTAMP, whic...
by kcbland
Tue Sep 12, 2006 9:20 am
Forum: General
Topic: Accessing Universe from Unix
Replies: 16
Views: 10066

First, it's not Universe, it's the DS Engine. To enter the command line, you must have the dsenv file loaded into your user environment. Then, you need to run dssh from the DS Engine directory. The commands I posted earlier change to the appropriate directory, load the the dsenv file into your envir...
by kcbland
Tue Sep 12, 2006 8:03 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Email content from a text file
Replies: 5
Views: 1082

Not a genius, just been around awhile.
by kcbland
Tue Sep 12, 2006 8:02 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with accessing sequential file in a shared container
Replies: 6
Views: 2505

Hashed files can handle multiple processes reading/writing, as long as they are not accessing the same row. Avoid using the locking mechanisms as it is a bad technique.
by kcbland
Tue Sep 12, 2006 7:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Is it possible to have unlinked stages
Replies: 3
Views: 1009

For a Server job, yes this should work. Independent streams execute as much as possible until a shared passive stage is used to link the streams. If there's no reference stage, then the independent streams should execute to completion. The issue is this job cannot be re-ran without re-running all st...
by kcbland
Tue Sep 12, 2006 7:25 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with accessing sequential file in a shared container
Replies: 6
Views: 2505

Two or more processes cannot WRITE to a sequential file simultaneously. Consider using a parameter in the file name.
by kcbland
Tue Sep 12, 2006 7:24 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Email content from a text file
Replies: 5
Views: 1082

The "best" way to read small files is to simply do this: CALL DSExecute("NT", "type /here/there/yourfile.txt", ScreenOutput, ReturnCode) The variable ScreenOutput will be a dynamic array of the file contents, each line in the screen output will be a row in the array. If you're on Unix, just switch N...
by kcbland
Tue Sep 12, 2006 7:21 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Architecture: DB2/UDB API Stage or Stored Procedures?
Replies: 2
Views: 791

If you're pulling in micro-batches all day long, you may get into some issues coordinating data across tables, meaning if inserts/updates are not packaged as a single transaction you may get into situations where some rows in a table are not synchronized with their children at th time you snapshot t...
by kcbland
Mon Sep 11, 2006 12:56 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Name column in director contains prompt info from designer
Replies: 5
Views: 1148

Wow! Waiting for the right moment for your first post? :lol:

I've never seen this problem with 7.5.2 on AIX and Solaris. But, my prompts are usually the same as the parameter name so I haven't exactly been trying to test this.
by kcbland
Mon Sep 11, 2006 12:52 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: War - 'Data that exceeds maximum length has been truncated'
Replies: 7
Views: 2273

You're all wrong except DSGuru2B. It's the GUI that can't display the full contents of a column. The job is fine.
by kcbland
Mon Sep 11, 2006 7:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Executing a shell script, passing encrypted passwords
Replies: 8
Views: 8110

The value is already in the environment. Have your script access it directly.