Search found 42189 matches

by chulett
Tue Jun 09, 2009 10:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bug in pivot stage ???
Replies: 30
Views: 13750

So... are you looking for someone to test this in a Server job? That's the only way one could use the pivot stage "which is present in server jobs". :?
by chulett
Tue Jun 09, 2009 10:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DataStage export Fixed-length File with NULL value
Replies: 6
Views: 8850

Re: DataStage export Fixed-length File with NULL value

I know it will work if I put 50 x spaces on null field value, but it is not best solution. Because, I may have other field with the length char(3000). What makes you think it's not the "best solution"? As noted, fixed-length means every record is always exactly X number of bytes long and ...
by chulett
Tue Jun 09, 2009 10:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bug in pivot stage ???
Replies: 30
Views: 13750

Both stages are in the 8.1 version, and it's not the "server pivot stage" - that's completely different, so perhaps I should say all three stages. It is the original PX pivot stage rather than the exciting new Enterprise version introduced in 8.1. 8) I'll see if I can try the other one tom...
by chulett
Tue Jun 09, 2009 9:43 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Months between two dates
Replies: 3
Views: 5501

Or do you literally want to recreate the Oracle MONTHS_BETWEEN() function in DataStage? The MONTHS_BETWEEN function calculates the number of months between two dates. When the two dates have the same day component or are both the last day of the month, then the return value is a whole number. Otherw...
by chulett
Tue Jun 09, 2009 9:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: XML Output xpath for group field
Replies: 3
Views: 2219

So... FILLER_2 redefines the PSD_BLF_UNIT_PRICE_PCT field? How can you include both if one redefines the other? My COBOL days are way behind me but that smells a little fishy to me. :?
by chulett
Tue Jun 09, 2009 9:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bug in pivot stage ???
Replies: 30
Views: 13750

Thank you very much craig for testing .Hope you have given datatype as Bigint in both i/p,o/p of pivot and test data is also Big int ( value greater than int ). Yes indeed. :wink: It might help if you explained your troublesome job design in full - stages, processing, etc so we can perhaps do a mor...
by chulett
Tue Jun 09, 2009 4:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bug in pivot stage ???
Replies: 30
Views: 13750

FWIW, built an 8.1 job with the Pivot Enterprise stage using BigInt fields and it works just fine. And I can't imagine any kind of View Data error would be relevant to this particular topic.
by chulett
Tue Jun 09, 2009 2:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transalate Total Months to number of Yrs and months
Replies: 1
Views: 812

Do a Mod() of the total number of months by 12 to get any remaining months in the last partial year. And Floor() should work for the years part, I would think.
by chulett
Tue Jun 09, 2009 2:24 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Months between two dates
Replies: 3
Views: 5501

Convert both dates to internal format using IConv() and then subtract, you'll have the number of days between them. How you get from days to months is up to your business rules.
by chulett
Tue Jun 09, 2009 11:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to Truncate data in Oracle
Replies: 12
Views: 3954

You'd have to switch to 'user-defined' DDL for that, I assume, and add the CHAR part yourself. Pretty sure the default when you don't specify either is BYTE.
by chulett
Tue Jun 09, 2009 11:20 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to Truncate data in Oracle
Replies: 12
Views: 3954

You're already doing that with your substring notation of [1,255] - that limits it to 255 characters. Your problem is those 255 characters need more than 255 bytes to hold them. Any chance of getting the target table altered? All it takes is a simple MODIFY statement for the column in question and y...
by chulett
Tue Jun 09, 2009 11:11 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to Truncate data in Oracle
Replies: 12
Views: 3954

Oracle.
by chulett
Tue Jun 09, 2009 10:59 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to Truncate data in Oracle
Replies: 12
Views: 3954

Sure, it's an option when creating the column:

FRED1 VARCHAR2(20 CHAR)
FRED2 VARCHAR2(20 BYTE)
by chulett
Tue Jun 09, 2009 10:56 am
Forum: IBM<sup>®</sup> SOA Editions (Formerly RTI Services)
Topic: temporary directory in sortstage
Replies: 3
Views: 2203

Seems to me you'd have to find out where those ones come from and ask them.
by chulett
Tue Jun 09, 2009 10:26 am
Forum: IBM<sup>®</sup> SOA Editions (Formerly RTI Services)
Topic: temporary directory in sortstage
Replies: 3
Views: 2203

Why are you looking for them? The nature of temporary files are such that they are cleaned up after the job completes because they're... well, temporary and thus no longer needed.