Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

increasing the spaces during concatenation

Former Member
0 Kudos

hi folks,

how can I increase space while concatenation instead of a single space.

for example... in this case.... need to increase the space between zzkeyword and zpofield.

concatenate zzkeyword zpofield into CTEXT3

separated by space.

thanks

Santhosh

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Just have a n charcacter field as your separator.



report zrich_0001.

data: zzkeyword(10) type c value 'HEY THERE,',
      zpofield(10) type c value 'HAVING FUN YET?',
      ctext3(50) type c,
      10spaces(10) type c value '          '.



concatenate zzkeyword zpofield into CTEXT3
       separated by 10spaces.


write:/ ctext3.

Regards,

Rich Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Just have a n charcacter field as your separator.



report zrich_0001.

data: zzkeyword(10) type c value 'HEY THERE,',
      zpofield(10) type c value 'HAVING FUN YET?',
      ctext3(50) type c,
      10spaces(10) type c value '          '.



concatenate zzkeyword zpofield into CTEXT3
       separated by 10spaces.


write:/ ctext3.

Regards,

Rich Heilman

0 Kudos

Thanks Rich It worked.