cancel
Showing results for 
Search instead for 
Did you mean: 

Leading zero, But 'n' Number of times (No Lpad)

Former Member
0 Kudos

Hi,

Lpad( 'ABC',6,'0') will give me the output

'000ABC'

What if '6' is dynamic (n number of times)? How to do it? Lpad can take only constant value.

Please help!!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member208402
Active Contributor
0 Kudos

Hi Mohan,

in what cases that 6 will be changed..? so that we can try this using a variable in the place of 6 i guess.