How to add zero "0" before record in a field?

Answers were Sorted based on User's Feedback



How to add zero "0" before record in a field?..

Answer / santhu

Sorry its not String we shoud use str("0",1)

Is This Answer Correct ?    8 Yes 0 No

How to add zero "0" before record in a field?..

Answer / ranjan

use the below function to add "0" in transformer

"0" : fieldname

Is This Answer Correct ?    12 Yes 6 No

How to add zero "0" before record in a field?..

Answer / santhu

Ranjan is right but when we want add 4 zeros("0")then By Using String Function we can do that

String("o",1):Column name
Here 1 is how many zeros we want

Is This Answer Correct ?    3 Yes 1 No

How to add zero "0" before record in a field?..

Answer / dhanasekar

Str(%string%,%repeats%) is the function used in transformer to repeat a string for a number of times we required.

%String%-> represents the string we want to repeat
%repeats%->its a no represents how many times the string to be repeated.

Example: Str("0",1):Column_name

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More Data Stage Interview Questions

What is datastage engine?

0 Answers  


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?

0 Answers   IBM,


how do u convert date in 20-12-07 to dec-20-2007 or 20-dec- 2007 or 20-dec-07 in parallel

3 Answers   Wipro,


Hi all, explain one complex business rule that you had in your project and how did you accomplish it using DS?

1 Answers   HCL,


How you Implemented SCD Type 1 & Type 2 in your project?

0 Answers  


How many jobs in ur project? Explain any complex job u have done in ur project?

1 Answers   IBM, TCS,


how to define satge variables in transformer stage

2 Answers  


Differentiate between validated and Compiled in the Datastage?

0 Answers  


Hi This is Vijay, How can your remove the duplicates in sequential File?

15 Answers   HCL, Scope International,


I have a few records all are same structures data, I want to store data in multiple targets how?

4 Answers   Polaris,


what is executable in DataStage?

2 Answers  


what is advantages of snowflake when it is used?

3 Answers   IBM,


Categories