Hi Friends,
I have a input data like,
class_id Marks
101 50
101 60
101 40
102 90
102 35
And i want my output data like
class_id Marks Rank
101 50 2
101 60 1
101 40 3
102 90 1
102 35 2
how to do this in datastage?
Answer Posted / anki_sri
Src>> Sort1 >> Sort2 >> Transfrmr >> Trgt
Sort1 --> sort with class_id and marks as well.
Sort2 --> declare key as id and select Dont Sort(Previously Sorted) and set create cluster key change column as True.
Transfrmr --> set two stage variables.
StageVar1=If Clusterkeychange=1 then Clusterkeychange else StageVar+1
StageVar=StageVar1
Create a new row as rank in transfrmr output and map StageVar1 to rank
| Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
What are the stages in datastage?
Explain usage analysis in datastage?
Explaine the implimentation of scd's in ds indetail, please send me step by step procedure to perform scd's 1,2,3. Please replay for this, Thanks in advance
Describe link sort?
Describe the architecture of datastage?
what is the use of skid in reporting?
Name the different types of Lookups in Datastage?
What is the use of hoursfromtime() function in transformer stage in datastage?
what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?
What is difference between symmetric multiprocessing and massive parallel processing?
What is ibm datastage flow designer?
for example You have One Table with 4 Columns (Mgr ID, Department ID, Salary, Employee ID). Can you find out the Average Salary and Number of Employee present per Department and Mgr
What is a quality stage in datastage tool?
What is difference between join, merge and lookup stage?
How do you import and export the datastage jobs?