Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Give an idea of system variables.

1007


what is flow of project?

1980


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

963


What are some prerequisites for datastage?

1077


What is the method of removing duplicates, without the remove duplicate stage?

1004


Define ds designer?

1252


What are some different alternative commands associated with "dsjob"?

1144


What is aggtorec restructure operator?

1427


Differentiate between data file and descriptor file?

1033


What is staging variable?

1074


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

2142


What can we do with datastage director?

1222


What are the types of containers?

1209


Is it possible to query a hash file?

1991


Highlight the main features of datastage?

1146