Search found 35 matches
- Sat Jun 16, 2012 11:52 pm
- Forum: General
- Topic: unix commands in sequential file
- Replies: 5
- Views: 2071
- Sat Jun 16, 2012 10:06 pm
- Forum: General
- Topic: unix commands in sequential file
- Replies: 5
- Views: 2071
unix commands in sequential file
which type of unix commands can i use in sequential file filter condition?
i tried sed
i tried sed
- Thu Jun 14, 2012 9:17 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get previous row value in current row
- Replies: 14
- Views: 12079
- Thu Jun 14, 2012 8:51 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get cumulative sum
- Replies: 14
- Views: 7944
Re: how to get cumulative sum
both are also working good.
ntr wrote:if st1 is null then SAL else st1+SAL--------st1
(OR)
if @inrownum=1 then SAL else st1+SAL--------st1
map st1 to sumcolum
make sure the data should be sorted based on SAL
- Thu Jun 14, 2012 7:46 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get cumulative sum
- Replies: 14
- Views: 7944
- Thu Jun 14, 2012 7:31 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get cumulative sum
- Replies: 14
- Views: 7944
Re: how to get cumulative sum
sv1+sv2->sv2
or
sv1+sv3->sv2 both are working fine..
or
sv1+sv3->sv2 both are working fine..
- Thu Jun 14, 2012 6:49 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get previous row value in current row
- Replies: 14
- Views: 12079
- Thu Jun 14, 2012 4:57 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get previous row value in current row
- Replies: 14
- Views: 12079
actually my requirement is id,sal,next_row_sal 10,1000,2000 20,2000,3000 30,3000,5000 40,5000,null i got solution for this.but how to get next row value to current row? This is technically impossible, because you can't use a value in a row that DataStage has not read at the time you want to use it. ...
- Thu Jun 14, 2012 4:35 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get previous row value in current row
- Replies: 14
- Views: 12079
i got solution for this.but how to get next row value to current row?
ray.wurlod wrote:Did you search DSXchange? The technique of using stage variables to remember a value from the previous row has been explained on a number of occasions.
...
- Thu Jun 14, 2012 3:30 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get cumulative sum
- Replies: 14
- Views: 7944
Re: how to get cumulative sum
k its working.i did one small mistake
- Thu Jun 14, 2012 3:16 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get previous row value in current row
- Replies: 14
- Views: 12079
Re: how to get previous row value in current row
can u explain me the logic? i did not get proper output with my logic
TPons wrote:you can implement the logic using stage variables in Transformer stage
---------
Pons
- Thu Jun 14, 2012 2:25 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get cumulative sum
- Replies: 14
- Views: 7944
how to get cumulative sum
source
id,sal
10,1000
20,2000
30,3000
40,5000
target:
id,sal,cum_sum
10,1000,1000
20,2000,3000
30,3000,6000
40,5000,11000
id,sal
10,1000
20,2000
30,3000
40,5000
target:
id,sal,cum_sum
10,1000,1000
20,2000,3000
30,3000,6000
40,5000,11000
- Thu Jun 14, 2012 2:15 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get previous row value in current row
- Replies: 14
- Views: 12079
how to get previous row value in current row
source
id,sal
10,1000
20,2000
30,3000
40,5000
target
id,sal,pre_row_sal
10,1000,null
20,2000,1000
30,3000,2000
40,5000,3000
id,sal
10,1000
20,2000
30,3000
40,5000
target
id,sal,pre_row_sal
10,1000,null
20,2000,1000
30,3000,2000
40,5000,3000
- Thu Jun 14, 2012 12:06 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: concatenate phone numbers with same customer id
- Replies: 4
- Views: 1947
Re: concatenate phone numbers with same customer id
i found the solution for this.
seqfile-->sort-->-->transformer-->remove duplicates-->dataset
in sort stage,set create key change column to true.
then u will get the required output
seqfile-->sort-->-->transformer-->remove duplicates-->dataset
in sort stage,set create key change column to true.
then u will get the required output
- Thu Jun 07, 2012 7:11 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: concatenate phone numbers with same customer id
- Replies: 4
- Views: 1947