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 many areas for files does datastage have?

644


how to delete one row in target dataset

2588


how to get sum of sal based on dept_no and then sum of all sal irrespective of dept_no in same sql. output:- 10, 200(sum of sal for dept_no 10), 5000(sum of all sal)

528


What is oci?

855


What is a folder? Difference types of stages?

632






Where the datastage stored his repository?

618


Is possible to create skid in dim,fact tables?

2191


project Steps,hits, Project level HArd things,Solved methods?

1638


How we can covert server job to a parallel job?

599


tell me 5 situations when we r using oracle db stages like orecle connector, oracle enterprise

2706


Why fact table is in normal form?

678


table actions available in oracle connector?

1096


how do u catch bad rows from OCI stage? And what CLI stands for?

2290


Name the third party tools that can be used in datastage?

618


How you can fix the truncated data error in datastage?

1207