i have a scenario with i/p as ID,salary with values 1,1000
2,2000 and 3,4000 i need an extra column in the o/p named
amount with values 2000,4000 and NULL. how can i get it?

Answer Posted / rahul baheti

Input - Transfer - Output
In Transfer, apply the order by desc on ID and define two stage variable (SVC1, SVC2) put the if condition in stage variable against SVC1 (If SVC1 = NULL then setnull() else SVC1 = SVC2) and in SVC2, assian the sal.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read the length of word in unix?

883


Explain the situation where you have applied SCD in your project?

1560


what are the devoleper roles in real time? plz tell i am new to datastage....

1641


client know skid info?

1633


Difference between server jobs & parallel jobs?

650






What steps should be taken to improve Datastage jobs?

641


How do you import and export the datastage jobs?

735


What is merge stage?

762


how to use self join using datastage ? can u tell me using stage how can we implemnet the self join

4563


How to find value from a column in a dataset?

1767


How can we improve performance of data stage jobs?

614


How to implement complex jobs in data stage?

614


Differentiate between Join, Merge and Lookup stage?

647


On which interface you will be working as a developer?

636


What all are the different way to run a job?

642