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 / amulya kumar panda

you are use
transformer if (Marks > 50 or 40 <Marks ) then rank=2 else
if Marks > 60 then rank=1 else rank=4

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main features of datastage?

672


how many rows sorted in sort stage by default in server jobs

3572


how to implement scd2 in datastage 7.5 with lookup stage

5143


EXPLAIN SCD

977


How to convert RGB Value to Hexadecimal values in datastage?

3468






Define APT_CONFIG in Datastage?

672


What are the different kinds of views available in a datastage director?

611


What is a merge?

682


What are the various kinds of the hash file?

674


What is a ds designer?

656


What are the functionalities of link collector?

639


How to manage date conversion in Datastage?

654


What is the flow of loading data into fact & dimensional tables?

604


Differentiate between hash file and sequential file?

595


What is the precedence of stage variables,derivations, and constraints?

604