Search found 25 matches

by dhanashreepanse
Tue Sep 02, 2008 3:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: days between two dates
Replies: 1
Views: 2330

Use the JulianDayFromDate function for both the dates to convert them to a number.
Then do the subtraction.
And then convert this number back to a date using DateFromJulianDay function.

-Dhanashree.
by dhanashreepanse
Wed Aug 06, 2008 3:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Concatenation of 4 fixed width files into one file
Replies: 2
Views: 1561

Hi

Rather than splitting the record and putting them in 4 files and again concatenating it, can you use the substring function & concatenation function and achieve the result in a single transformer ?

-Dhanashree
by dhanashreepanse
Fri Apr 25, 2008 5:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Stage
Replies: 8
Views: 3804

Rajesh,

Based on the joining key, Join stage can take the required columns from both the input files.
On the output -->mapping tab, you can specify the required mappings.

-Dhanashree
by dhanashreepanse
Tue Mar 04, 2008 5:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage equivalent for 'Scan' function of SAS
Replies: 1
Views: 1546

Datastage equivalent for 'Scan' function of SAS

DS Gurus, We are having a peculiar problem where in we want to implement the equivalent of the SCAN function (available in SAS) in Datastage PX. The SAS code is : state = scan(InputString,-1) i.e from the InputString it reads the rightmost word and assigns to the variable state. As no delimiter is s...
by dhanashreepanse
Thu Feb 07, 2008 5:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to convert delimited file to fixed width file.
Replies: 5
Views: 2541

Read the input in a sequential file. Put a transformer after that. Put another sequential file stage and set the property "Record Length" to Fixed.
by dhanashreepanse
Tue Feb 05, 2008 4:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: need logic
Replies: 7
Views: 3248

You can also try this with a PX job: 1. Sort the input based on the ID column and generate Rank_Num starting from 1 wherever the ID changes. 2. Use a filter stage and have 2 outputs from it. First one filters outs all rows with Rank_Num=1 and second one filters out all rows with Rank_Num<>1. 3. Use ...
by dhanashreepanse
Fri Jan 18, 2008 2:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sort Stage Vs CPU utilization
Replies: 1
Views: 908

Sort Stage Vs CPU utilization

I read that the sort stage in PX is a lot faster and it is recommended that by using this before the join stage would improve the job performance. But at the same time, the CPU utilisation is also high. How should one decide how many sort stages should be used in one job so as to keep the CPU utilis...
by dhanashreepanse
Thu Jan 17, 2008 4:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: removal of header and trailor from seq file
Replies: 2
Views: 1409

Head/Tail stage can't be used here since you won't know the exact number of records in the file. In the sequential file stage, go to Output --> Properties --> Options. Set the filter property as: sed '$d' | sed '1,1d' First one removes the trailer and the next one removes the header. -Dhanashree
by dhanashreepanse
Thu Jan 17, 2008 3:30 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Trim the data
Replies: 5
Views: 2267

You can try Trim(Left(incoming column,40)).
by dhanashreepanse
Mon Jan 14, 2008 5:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: BigInt Problem
Replies: 6
Views: 2258

Hi
Which stage are you using before and after the transformer?
What is the nullability set for that field at the input and output?