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
what is use of SDR function?
what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?
What is a ds designer?
Explain the importance of surrogate key in data warehousing?
why do u need the IOS upgradation in a FC switch
How will you move hashed file from one location to another location?
whom do you report?
What is the Environment Variable need to Set to TRIM in Project Level?(In transfermer, we TRIM function but I need to impliment this project level using Environment variable)
What is the command line function to import and export the ds jobs?
what is 'reconsideration error' and how can i respond to this error and how to debug this
if i have two tables table1 table2 1a 1a,b,c,d 1b 2a,b,c,d,e 1c 1d 2a 2b 2c 2d 2e how can i get data as same as in tables? how can i implement scd typ1 and type2 in both server and in parallel? field1 field2 field3 suresh , 10,324 , 355 , 1234 ram , 23,456 , 450 , 456 balu ,40,346,23 , 275, 5678 how to remove the duplicate rows,inthe fields?
What are the processing stages?
Is possible to create skid in dim,fact tables?
Can you explain how could anyone drop the index before loading the data in target in datastage?
Explain Quality stage?