View previous topic :: View next topic
|
Author |
Message |
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi,
The below SAS code,
Code: |
ODS LISTING CLOSE;
ODS PDF FILE=OUTFILE1 NOTOC;
OPTIONS NOCENTER ERRORABEND NODATE NONUMBER;
PROC PRINT UNIFORM DATA=xxxxxxxx SPLIT=',';
ID A B C D E;
VAR E ;
SUM E ;
RUN;
ODS PDF CLOSE;
ODS LISTING; |
produces the attached report.
Could you please let me know how to code the styles in the proc print so that the data portion of the table has a white back ground. Currently only the last column has white background.
Thanks, |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi,
I stumbled on this solution recently, thought of sharing it, To get White background use,
Code: |
ODS LISTING CLOSE;
ODS PDF FILE=OUTFILE1 NOTOC;
OPTIONS NOCENTER ERRORABEND NODATE NONUMBER;
PROC PRINT UNIFORM DATA=xxxxxxxx SPLIT=',';
ID A B C D E / STYLE = [BACKGROUND = WHITE];
VAR E / STYLE = [BACKGROUND = WHITE];
SUM E / STYLE = [BACKGROUND = WHITE];
RUN;
ODS PDF CLOSE;
ODS LISTING;
|
Regards, |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for sharing the solution
d |
|
Back to top |
|
|
|