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

what is the use of surogate key in datastage

1807


How to implement complex jobs in data stage?

605


Name the command line functions to import and export the DS jobs?

696


What is ds designer?

643


Describe the architecture of datastage?

558






What is a merge in datastage?

759


What are the functionalities of link partitioner and link collector?

592


If you want to use the same piece of code in different jobs, how will you achieve it?

625


Describe routines in datastage? Enlist various types of routines.

571


What is datastage?

642


What are the components of datastage?

642


What are the types of containers and how to create them?

547


What are the different types of lookups in datastage?

617


1.what is repartionoing technique? 2.what deliverables transferred to client using datastage? 3.how to write loop statements using nested loop sequence?

1799


Define oconv () and iconv () functions in datastage?

868