Search found 35 matches

by jhansi
Sat Jun 16, 2012 11:52 pm
Forum: General
Topic: unix commands in sequential file
Replies: 5
Views: 2071

can u explain me in detail?
by jhansi
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
by jhansi
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

but i am getting output as 1 2 3 4
by jhansi
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
by jhansi
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

without transformer can we do this scenario?
by jhansi
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..
by jhansi
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

how to left join those streams? i used datasets
by jhansi
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. ...
by jhansi
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.
...
by jhansi
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
by jhansi
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
by jhansi
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
by jhansi
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
by jhansi
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
by jhansi
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

thnx 4 ur reply.
but when i am giving in.accnt in accnts stage variable...
it is showing that 'in.accnts' column is not defined.what is this 'in.'
where to give this else condition