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...

My source having following data as below,
AB1
Aim2
Abnv5
1An8bx
and my question is i need the Datastage job the following
as in my target

000AB1
00Aim2
0Abnv5
1An8bx
Please help me to achive this.

Answer Posted / subbuchamala

In the Output Column Derivation of Transformer Stage:

1. Way:
Str('0',6-Len(string)): Input_Col--->Output_Col

2. Way:
right("000000" : Input_Col),6) --->Output_Col

3. Way:
Right(Str("0",6) : Input_Col),6) --->Output_Col
Right(Str("0",3) : Input_Col),6) --->Output_Col

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the different sorting methods in datastage.

1035


Have you have ever worked in unix environment and why it is useful in datastage?

1121


How to perform incremental load in datastage?

1180


How a server job can be converted to a parallel job?

1080


If we take 2 tables(like emp and dept),we use join stage and how to improve the performance?

2026


Nls stands for what in datastage?

1181


Can you define merge?

1101


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

2042


What is the difference between passive stage and active stage?

1507


how to delete one row in target dataset

3100


What is the precedence of stage variables,derivations, and constraints?

1063


What is the purpose of pivot stage and types of containers in datastage

1027


How the ipc stage work?

1113


What are the job parameters?

1206


Which is the best institute in Hyderabad to learn OBIEE and DataStage?Please tell me faculty name also

3158