Search found 4992 matches

by kcbland
Mon Feb 28, 2005 2:28 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: varchar to date conversion on DS 7.5
Replies: 6
Views: 3598

The Oracle OCI9 stage automatically puts a TO_DATE(yourcolumn, 'YYYY-MM-DD HH24:MI:SS') statement on the SQL for that column when using auto-generated SQL on DATE datatype columns. All you have to do is make sure your date is in that form, if it is not, there are posted functions on this forum that ...
by kcbland
Mon Feb 28, 2005 1:56 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: varchar to date
Replies: 9
Views: 2808

I'm looking for it, where is it? A new post means a NEW POST, not a reply on an existing message thread.
by kcbland
Mon Feb 28, 2005 1:54 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Function
Replies: 3
Views: 1192

If you want to exchange or replace substrings yourstring=CHANGE(yourstring, "XYZ", "ABC") will change all "XYZ" substrings to "ABC". If you want to map an array to other values: CONVERT "XYZ" TO "ABC" IN yourstring will change all "X" to "A", all "Y" t...
by kcbland
Mon Feb 28, 2005 1:51 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Function
Replies: 3
Views: 1192

Code: Select all

CountOfXYZ=COUNT(yourstring, "XYZ")


If you want the character location of the first occurence:

Code: Select all

POS=INDEX(yourstring, "XYZ", 1)
by kcbland
Mon Feb 28, 2005 1:49 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Backup Hash files
Replies: 9
Views: 2294

If you've created them using the 'pathed' option, then yes, backing up (in some form) the entire contents of their folder is sufficient. But How can it be backed up if the Account Name is used with empty field? Thanks, Than your only choice is to backup the project, and since you can't separate job...
by kcbland
Mon Feb 28, 2005 1:47 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: varchar to date
Replies: 9
Views: 2808

Please state the format of the source data as well as the target. We don't know which timestamp you're talking about, Oracle, Sybase, DB2, etc. Plus, are you going to load it into the database using which stage? It's all important so that we can give you the right answer. Next time, please start a n...
by kcbland
Fri Feb 25, 2005 8:34 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Comparing columns in a record
Replies: 5
Views: 1159

If your data contains NULL, you can't do the equality as you've done. You must allow for the NULL condition. I suggest writing either a TRANSFORM or a FUNCTION to handle the comparison. Example function IsSame(Arg1,Arg2): Ans=If ISNULL(Arg1) AND ISNULL(Arg2) OR COMPARE(Arg1,Arg2,...
by kcbland
Fri Feb 25, 2005 8:30 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Hash file size
Replies: 8
Views: 2128

Caching a large file in memory is oxymoronic - you wouldn't do it. You cache highly repetitively accessed data, which large files tend NOT to be. Also, DS does not support read/write caching 64BIT hash files so it doesn't matter. Hash file performance is directly related to the amount of data on eac...
by kcbland
Fri Feb 25, 2005 9:19 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: FORMAL difference between server and parallel jobs?
Replies: 7
Views: 2062

The FORMAL difference is that Server is the ETL tool used by over 2000 customers. Parallel is a separate tool that was purchased a few years back and "folded" into the suite. Parallel and Server are COMPLETELY separate ETL tools under the covers, with some limited overlap capability. Imagine two hou...
by kcbland
Fri Feb 25, 2005 9:09 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: CatDSX.pl : Not finding any files
Replies: 4
Views: 956

Hey Andy, if you have questions about posted shareware programs, you should address them directly to the folks who posted it. For CatDSX, that was developed by me and Steve Boyce, so you can ask your question to me, or go to the original post: m that supplied the logic and reference that when you po...
by kcbland
Thu Feb 24, 2005 7:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Hash file size
Replies: 8
Views: 2128

Just search this forum, there are many posts regarding this.
by kcbland
Thu Feb 24, 2005 3:23 pm
Forum: IBM QualityStage
Topic: Unduplicating a file
Replies: 3
Views: 2074

Read the file and use the Aggregator stage. Use the FIRST derivation for the phone number, group by the name. You'll only get the first phone number as output for each customer name.
by kcbland
Thu Feb 24, 2005 3:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Parse an expression
Replies: 3
Views: 869

Sure, depends on how complex your expressions will be. You can write a function to have a known set of operators, and simply parse the left side of the operator and the right side of the operator. Are you asking for help writing a function like this, or are you asking is there something built into D...
by kcbland
Thu Feb 24, 2005 12:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: ds job run errors
Replies: 6
Views: 1170

Look at this script, it shows you a good way to build a script to execute the dsjob command. You should form the entire command string and echo it, then execute it. That way you can debug it to see if it is formed correctly.

http://www.dsxchange.com/viewtopic.php?t=85578
by kcbland
Thu Feb 24, 2005 9:01 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Setting up DS 7.5 on Windoze 2003 Server with UTF8 enabled
Replies: 5
Views: 1239

Thanks guys. I'll be trying it later today and check back with what steps I had to take. Just to recap: 1. Chinese customer is using DS 7.5 Windoze Server and sent over a XML-DSX file full of Chinese characters. We were told they're using UTF8. 2. We setup a new DS 7.5 Windoze Server installation wi...