2008 Jul 16 6:27 AM
Hi all,
if there a value in the variable then print it else hwo to leave that much blank space.
Regards,
Mohsin
2008 Jul 16 6:29 AM
hi,
WRITE: /(10) space.
here, (10) specifies the number of characters that will be occupied by space.
regards,
Peter
2008 Jul 16 6:30 AM
2008 Jul 16 6:30 AM
hi,
try this.
len = strlen(var).
If var is initial.
do len times.
write: space
enddo.
else.
write: var.
endif.
hope this will help.
Regards
Sumit Agarwal .
2008 Jul 16 6:32 AM
Hi Mohsin,
Try to print the variables using UNDER stattement. That is print each variable under some heading.
This will automatically print the variable if it has a value in it, otherwise it will leave as many spaces of that variable.
Hope this helps you.
Regards,
Chandra Sekhar
2008 Jul 16 6:33 AM
if the value is balnk while printing it will take that much blank space.
see the example
data: a(2) type c value 10,
b(2) type c ,
c(3) type c value 100.
write:/ a,b,c.