Application Development and Automation 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: 
Read only

SPACE or ''

Former Member
0 Likes
613

Which one is good to use (Is )

WRITE SPACE TO wa_final+h_offset(20) .

OR

WRITE SPACE TO wa_final+h_offset(20) .

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
578

I think you meant.....

WRITE <b>SPACE</b> TO wa_final+h_offset(20) .
*OR 
WRITE <b>' '</b> TO wa_final+h_offset(20) .

Both will do the same, but I like to use SPACE as opposed to a literal, this is strictly a preference, I just think that it is easier to read.

Regards,

Rich Heilman

3 REPLIES 3
Read only

Former Member
0 Likes
578

Hi,

Both looks like the same..I don't see any difference in the code..

THanks,

Naren

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
579

I think you meant.....

WRITE <b>SPACE</b> TO wa_final+h_offset(20) .
*OR 
WRITE <b>' '</b> TO wa_final+h_offset(20) .

Both will do the same, but I like to use SPACE as opposed to a literal, this is strictly a preference, I just think that it is easier to read.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
578

Using SPACE is recommended.The difference can be noted if we have too many place to display them. In a case where the number of spaces are displayed at lot of places, eecution is faster if we use SAPe instead of ' '.