12-15-2008 7:36 AM
Hi there...
I need to insert SPACE while concatinating a few strings. i tried to hard code SPACE, but could not succeed. now i hav assigned space to a string type variable (str4), but stil nothings happening. can someone help. the code i hav is as follows.
str4 = ' '.
SPLIT str2 AT ' ' INTO str2 str3.
CONCATENATE str1 '+0(' str2 ')' str4 ' ' str3 ' "Unicode Compatible'
INTO v_pgm_line.
regards
12-15-2008 7:41 AM
Hi,
Use RESPECTING BLANKS addition of CONCATENATE to achieve your requirement.
See F1 help for RESPECTING BLANKS for example code.
Regards
Karthik D
12-15-2008 7:40 AM
CONCATENATE str1 '+0(' str2 ')' str4 ' ' str3 INTO v_pgm_line SEPARATED BY SPACE.
12-15-2008 7:41 AM
Hi,
Use RESPECTING BLANKS addition of CONCATENATE to achieve your requirement.
See F1 help for RESPECTING BLANKS for example code.
Regards
Karthik D
12-15-2008 7:57 AM
try with more sapce...
CONCATENATE str1 '+0(' str2 ')' str4 ' ' str3 INTO v_pgm_line SEPARATED BY SPACE.
12-15-2008 8:01 AM
>
> CONCATENATE str1 '+0(' str2 ')' str4 ' ' str3 ' "Unicode Compatible'
> INTO v_pgm_line.
> regards
Use strings instead of char. The difference is the apostrophe against back quotes.
CONCATENATE str1 `+0(` str2 `)` str4 ` ` str3 INTO v_pgm_line.