Hi everyone!
I found the codes named Working with ODS Layout in SAS website. it looks like it works in that example SAS provided, but it does not appear to move the table farther left than from the center when I set x=.25in in the ODS region line. however, when I set x=5, it does move the table to near the right edge of the pdf page.
Any help you could provide is greatly appreciated.
ods pdf file = '/folders/myfolders/sasuser.v94/odslayoutpage.pdf';
ods layout absolute;
ods region y=1in x=.25in;
proc report nowd data=sales4
style(header)={background=cx494068 color=cxbbb2e0};
columns region city sales;
define region / group;
define sales /analysis sum format=dollar14.;
run;
ods layout end;
ods pdf close;
Hi:
My suggestion is that you look at the documentation and for some papers by Dan O'Connor, Pete Lund and Barbara Okerson on the use of ODS LAYOUT. I hardly ever use ABSOLUTE Layout. However, the page margins always come into play and I always use WIDTH=. PROC REPORT will try to center unless you use the NOCENTER option. You didn't post any data, but using SASHELP.SHOES, I was able to get this:
Hope it gives you an idea of what to look up in the doc.
Cynthia
Cynthia!
Thank you! I appreciate your help very much!
Your codes work nicely. I'll definite take a look at the paper you recommended.
Ethen,
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.