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

How one source columns or rows to be loaded in to two different tables?

654


Is possible to create skid in dim,fact tables?

2187


Can you explain how could anyone drop the index before loading the data in target in datastage?

889


options available in sequence job to run,validate?

832


Difference between IBM DATA STAGE8.5 and DATA STAGE9.1 ?

3372






What are the steps needed to create a simple basic datastage job?

655


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

2539


What are the partitioning techniques available in link partitioner?

1753


how can we create rank using datastage?what is the meaning of rank?

8159


Can you filter data in hashed file?

3339


how to connect source to db?generally what r stages u used? how to find the data is having delimiter format?

1916


Which algorithm you used for your hashfile?

683


What are the functionalities of link partitioner and link collector?

594


How to RD using transformer?

854


How to create a file using vi editor? 2)how to delete a file in vi editor? 3)How to connect the server datastage to unix? what r the command lines we r using? 4)30 jobs r runnig in unix i want to find out my job. how to do this? give me command?

2050