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 / snr

Using TRS Satge with this logic

If ID=left(salary,1) then Salary*2 else 'Null'

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.

1617


What is Ad-Hoc access? What is the difference between Managed Query and Ad-Hoc access?

2544


How many types of stage?

676


Hi everyone,I have kept a project Sales And Distribution for a pharmaceutical company.can anybody explain one complex business rule that we had in our project and how did you accomplish it using DS?

1758


what is flow of project?

1559






how to add a new records into source?

1528


how to export or import the jobs in .ISX file

717


Differentiate between validated and Compiled in the Datastage?

642


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

794


What are datastage sequences?

670


What are the various kinds of the hash file?

661


What are some prerequisites for datastage?

617


client know skid info?

1633


How many Key we can define in remove duplicate stage?

821


Which warehouse using in your datawarehouse

1682