I want to control pdf output page width and column width. Why does the output look so bad (please see below). However if output is rtf there is no issue.
please advise. Thanks.
data x;
set sashelp.asscmgr;
if _n_<20;
run;
%let exf=pdf;
ods &exf. file="C:\Users\....\try.&exf.";
proc report data=x style(report)=[width=7.5in];
column clasname objname defcredt defmonddt id ldesc;
define clasname / style=[cellwidth=10%];
define objname / style=[cellwidth=10%];
define defcredt / style=[cellwidth=10%];
define defmonddt / style=[cellwidth=10%];
define id / style=[cellwidth=10%];
define ldesc / style=[cellwidth=50%];
run;
ods &exf. close;
Hi:
PDF is not "happy" if you try to over-control the width as you show. I find that if I simplify your code and only specify the overall width and make sure that the margins are set, then both RTF and PDF produce nice looking output:
If you want more "real estate" for displaying long text fields, you might consider landscape orientation.
Hope this helps,
Cynthia
Cynthia,
Thanks a lot.
George
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.