how to sort two columns in single job in datastage.
Answer Posted / srinivas
We can do this by using the sort stage.
Specify the key columns what ever the you are sort.
Specify column name sort specifications
For example i have 3 columns data like below
Name score rank
abc 85 1
bcd 74 3
abc 82 2
bcd 67 4
When u r sort based on first two colmns
u have to specify two colmn names and specificaton
Like: Name Asc, Score Dsc.
Then u will get the output like below.
Name score rank
abc 85 1
abc 82 2
bcd 74 3
bcd 67 4
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is a ds designer?
What is a merge in datastage?
How do you generate sequence number in datastage?
What are routines in datastage? Enlist various types of routines.
how can we create rank using datastage?what is the meaning of rank?
What are some prerequisites for datastage?
What is the different type of jobs in datastage?
describe the Steps to confiure a Qlogic switch
how to implement scd2 in datastage 7.5 with lookup stage
What are the main features of datastage?
What are system variables and sequencers in datastage
What are the enhancements made in datastage 7.5 compare with 7.0?
Enlist various types of routines in datastage.
Different ways a project can be moved to production ?...example ….export-import and Version control.
How do you remove duplicate values in datastage?