‎2009 Dec 04 9:56 AM
Hi,
I want 15 spaces as a variable we can do it like this ' '.
Supppose I want to get 100 spaces in one variable then how best can I do it.
We can do it in a loop.But is there any better solution.
Regards,
Subhashini
‎2009 Dec 04 10:01 AM
Hi,
Define a variable of char type.
data v_tmp type char150.
v_tmp+100 = 'abcdefgsdjknsdnsdn'.
This way variable will have 100 spaces first and then abcde....
Regards,
NaPPy
‎2009 Dec 04 10:01 AM
Hi,
Define a variable of char type.
data v_tmp type char150.
v_tmp+100 = 'abcdefgsdjknsdnsdn'.
This way variable will have 100 spaces first and then abcde....
Regards,
NaPPy
‎2009 Dec 04 10:02 AM
‎2009 Dec 04 10:06 AM
you need to follow some thing like this :
data: v_source(10),
v_material(8),
v_space(9),
v_spec value '#',
v_spclen type i.
v_spclen = 10 - STRLEN( v_source ).
DO v_spclen TIMES.
concatenate v_space v_spec into v_space.
ENDDO.
CONCATENATE v_source v_material INTO v_string seprated by v_space.
translate v_string using '# '.
‎2009 Dec 04 10:34 AM
you can try this:
data: lv_var type string.
do 100 times.
concatenate lv_var space into lv_var SEPARATED BY space.
enddo.