Help using Base SAS procedures

PROC REPORT cell alignment

Accepted Solution Solved
Reply
Super Contributor
Posts: 279
Accepted Solution

PROC REPORT cell alignment

The character values in my output are left justified in each cell and the numeric values are right justified. Is there an option to center all of them?  Here's the part of the code where I list the options:

 

***** DEFINE PDF FILE. *****;
options nodate number pageno=1 orientation=portrait colorprinting=yes papersize=letter missing='N' nobyline
bottommargin=0in topmargin=0in leftmargin=0in rightmargin=0in;
ods pdf file="G:\Departments\Research\Dashboard\WorkKeys\&yr.\WorkKeys &yr. District Ranks -- &test2..pdf";
***** PRINT REPORT. *****;
proc report data=&test._ranked nowd split='*' style(header)={background=cx66cc99 font_size=12pt} style(column)={font_size=10pt}
style(report)={vjust=c just=c cellpadding=0pt};


Accepted Solutions
Solution
‎09-20-2016 03:48 PM
Trusted Advisor
Posts: 1,584

Re: PROC REPORT cell alignment

proc report ... ;

 

DEFINE column_name / CENTER;  /* used to center column label and column values */

View solution in original post


All Replies
Solution
‎09-20-2016 03:48 PM
Trusted Advisor
Posts: 1,584

Re: PROC REPORT cell alignment

proc report ... ;

 

DEFINE column_name / CENTER;  /* used to center column label and column values */

Super Contributor
Posts: 279

Re: PROC REPORT cell alignment

Thanks for your help.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 764 views
  • 0 likes
  • 2 in conversation