Search found 42189 matches

by chulett
Thu Sep 08, 2005 9:12 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: string to number
Replies: 9
Views: 3635

Should still be automatic if you define your target field in the Sequential File stage as Decimal with a scale of 2, you shouldn't have to do anything magical to get what you want. If you want to have specific control over the format of the data, define the target field as Character or Varchar and t...
by chulett
Thu Sep 08, 2005 8:37 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: string to number
Replies: 9
Views: 3635

Math on a string forces a numeric conversion under the covers. You would need to do this if you were populating a field heading to a database table, for instance. I prefer to multiply by one, but that's just me. However, if this was still "in flight" in your job moving between transformers, you shou...
by chulett
Thu Sep 08, 2005 4:27 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: link shared private file cache enabled, overriding no cache
Replies: 5
Views: 1146

Defaulted. So... 'Use Project Defaults' is checked in the job and - at the project level - 'Tunables' does not have 'Enable row buffer' enabled.
by chulett
Thu Sep 08, 2005 4:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Format 195,231 (char) to 195231 (Numeric)
Replies: 24
Views: 4308

Titto wrote:It worked out!!

Yah! :lol:
by chulett
Thu Sep 08, 2005 4:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Format 195,231 (char) to 195231 (Numeric)
Replies: 24
Views: 4308

pnchowdary wrote:Can't we use the Real function in this scenario?

Not sure as I haven't had a need to use that one before. Might be something to try for grins.
by chulett
Thu Sep 08, 2005 3:28 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Format 195,231 (char) to 195231 (Numeric)
Replies: 24
Views: 4308

Still think math would do the trick...

Code: Select all

If Len(Trim((MYLINK.COST)) = 0 Then 0 Else MYLINK.COST * 1

Give that a shot. :wink:
by chulett
Thu Sep 08, 2005 12:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Update Action
Replies: 5
Views: 1385

Read the online help available from inside the stage so you understand how all of the update actions work. That action issues an update and - if the update fails - also attempts an insert. There is another where the two actions are reversed. There is no update action that works only if something ha...
by chulett
Thu Sep 08, 2005 6:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: writing a message from a transform into job log
Replies: 6
Views: 2084

You could always try looking it up in the BASIC reference manual. :wink:

It does what you would think it does from its name - returns a boolean, true if the variable was never assigned a value and false if any value was assigned, including a null value.
by chulett
Thu Sep 08, 2005 6:32 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date should be greater than 3 months from TODAY
Replies: 5
Views: 2050

Sometimes a 'month' is defined as a 30 day interval. When it needs to be 'real' months, you need to roll your own. It's not all that hard to put together a routine that adds months to a date and handles real months and leap years and fun things like that. The 'conv' brothers help alot in that regard.
by chulett
Thu Sep 08, 2005 6:26 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: undo changes
Replies: 1
Views: 835

Well, you can certainly 'undo' database changes via either 0 commit levels and constraints that check for rejected records or transaction grouping if that's available in your database stage. The Output Link variables like REJECTED, REJECTEDCODE, DMBSERROR, etc are what I am referring to. The hashed ...
by chulett
Thu Sep 08, 2005 6:14 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: link shared private file cache enabled, overriding no cache
Replies: 5
Views: 1146

No, that's the thing - no options are checked. None, not in the stage nor in the job. The reference hashed file does have its 'Pre-load to memory' option enabled, but so do all the other similarly designed jobs that do not exhibit this behaviour. The writing side of the hashed file has all options d...
by chulett
Wed Sep 07, 2005 8:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date conversion from mm/dd/yy to CCYY-MM-DD
Replies: 8
Views: 3781

Suggestion to all consultants of employers: include something like this in all your work. This code is provided "AS IS" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infrin...
by chulett
Wed Sep 07, 2005 8:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date should be greater than 3 months from TODAY
Replies: 5
Views: 2050

Based on your use of SYSDATE, making an assumption of Oracle. All you would need in your query's constraint would be something like: DATE_COLUMN > ADD_MONTHS(SYSDATE,3) You may need to 'trunc' both dates if you don't want the time portions to come into play, but that should help in your 'whe...
by chulett
Wed Sep 07, 2005 4:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Checksums
Replies: 2
Views: 1011

Search the forums for CRC32 - not sure if it applies to PX jobs, however. :?
by chulett
Wed Sep 07, 2005 4:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: link shared private file cache enabled, overriding no cache
Replies: 5
Views: 1146

link shared private file cache enabled, overriding no cache

Ok, what is up with the message in the subject line? I have a number of very similar jobs and one of them is misbehaving. All do basically this: 1) Read from a landed flat file 2) Transforms on the data 3) Hit an existing keys hashed file for insert/update 4) Generate a new surrogate for inserts 5) ...