The SAS Output Delivery System and reporting techniques

leading space in format

Reply
Contributor
Posts: 74

leading space in format

I defined the format with leading spaces. they look good when I output those in a dataset. But when I output it on the rtf file the leading spaces are all trimmed. I was using ods rtf and proc report.

Anyone knows how to preserve the leading spaces when output on an rtf file with proc report? thanks much!
SAS Super FREQ
Posts: 8,868

Re: leading space in format

Posted in reply to abdullala
Hi:
Check out the style attribute ASIS=ON -- it tells PROC REPORT, PROC PRINT or PROC TABULATE and ODS to preserve leading spaces. For example, in a PROC REPORT DEFINE statement you might have:
[pre]
define varname / display style(column) = {asis=on cellwidth=1in} ;

[/pre]

...if your varname variable was the one that contained leading spaces. If you wish to apply your format and have leading spaces preserved, then you would need to add the FORMAT= or F= option to your DEFINE statement.

cynthia
Contributor
Posts: 74

Re: leading space in format

Posted in reply to Cynthia_sas
thank you very much Cynthia -- I will try it and let you know how it works for me!
Ask a Question
Discussion stats
  • 2 replies
  • 198 views
  • 0 likes
  • 2 in conversation