create a job to get the previous row salary for the current row.if there is no previous row exists for the current row,then the previous row salary should be displayed as null?
empid salary previoussalary
10 1000 null
20 2000 1000
30 3000 2000
40 4000 3000
Answer Posted / indu
input file-->transformer--> output file
declare stage varibales
current salary
previous salary and initialize the previous salary to null
current salary--> previous salary
previous salary->salary
in the output file derive previousalary as
previoussalary-->current salary (stage variable)
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
hi iam new to this tooliam cmpltied to know abt datastage so now iam in project tell me whole step by step what iam doing iwnt to go with exp so plz hlp me pals
CHANGE CAPTURE
How many areas for files does datastage have?
What is the difference between datastage and datastage tx?
sed,awk,head
1)s.key generate 1 to 700 records today. tomorrow another 400 will updated how to update the records using s.key generator? 2)source is like :-- DB --> T/F stage1 --> seq1file T/f 1 is linking with T/F2 ---> seq 2 how to load the data? in source i given some conditions those r going in seq1. The another data will going to seq2 how to do this ?
what is 'reconsideration error' and how can i respond to this error and how to debug this
To see hidden files in LINIX?
Difference between server jobs & parallel jobs?
What are routines in datastage? Enlist various types of routines.
What are the important features of datastage?
What are the job parameters?
What are transforms and what is the differenece between routines and transforms?
Explain Quality stage?
How complex jobs are implemented in datstage to improve performance?