Skip to Content
0
Former Member
Jan 31, 2008 at 10:01 AM

How to write final blanks using WRITE statement?

69 Views

Hi all,

I have a character variable of size 284, which I want to print out with size 284 no matter how many "non space" characters there are in the variable.

What happens now is that only the characters up the first final blan are printed and not the final blanks.

E.g.:

DATA: line(284) TYPE c .

line = '26547 kjhkji ' .

WRITE / line .

What is then printed is:

26547 kjhkji

The final blanks are not printed. What can I do to write also these final blanks??

Thanks in advance for all the helpful answers!

BR,

Armin