The SAS Output Delivery System and reporting techniques

SAS EG and ODS Layout Gridded

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 19
Accepted Solution

SAS EG and ODS Layout Gridded

I'm using Enterprise Guide and trying to use ODS layout gridded to create a PDF output. First problem, there is any error message saying that the "style" option is not recognized and will be ignored (I highlight the code below), which I thought "style" is an option within ODS layout gridded. So I'm not sure if is an Enterprise Guide issue or there is something wrong with my sytex. The second problem is there are couple missing titles in the PDF output. I want a general title and individual tiltes of the two tables, but only the general title came out in the output. Hoping someone can tell me why the "style" option is not working and why the titles are missing.

 

 

options nodate nonumber ORIENTATION=landscape;
ods pdf file='abcd.pdf';
title 'Completion Rate by Program';
footnote 'X Program is not included';

 

ods layout gridded style=[backgroundcolor=yellow];
ods region ;
title 'Completion Rate by Program by Section';
proc print data=by_program noobs;
run;

 

ods layout gridded y=4in columns=5 style=[backgroundcolor=yellow] column_widths=(5.35in .5in .5in .5in .5in);
ods region;
title 'Completion Rate by Program by Section';
proc print data=prg_sections_pdf noobs;
run;

 

ods layout end;
ods pdf close;


Accepted Solutions
Solution
‎04-18-2016 10:46 AM
Super User
Posts: 9,867

Re: SAS EG and ODS Layout Gridded

Yes. You have some syntax error . You can't put STYLE on ods layout  in that way .

 

 

options nodate nonumber ORIENTATION=landscape;
ods pdf file='/folders/myfolders/abcd.pdf';
title 'Completion Rate by Program';
footnote 'X Program is not included';
 
ods layout gridded style=sasweb;
ods region ;
ods text='Completion Rate by Program by Section';
proc print data=sashelp.class noobs style(report header)={backgroundcolor=yellow};
run;
 
ods layout gridded y=4in columns=5 style=sasweb column_widths=(5.35in .5in .5in .5in .5in);
ods region;
ods text='Completion Rate by Program by XXXX';
proc print data=sashelp.class noobs style={backgroundcolor=yellow};
run;
 
ods layout end;
ods pdf close;

View solution in original post


All Replies
Solution
‎04-18-2016 10:46 AM
Super User
Posts: 9,867

Re: SAS EG and ODS Layout Gridded

Yes. You have some syntax error . You can't put STYLE on ods layout  in that way .

 

 

options nodate nonumber ORIENTATION=landscape;
ods pdf file='/folders/myfolders/abcd.pdf';
title 'Completion Rate by Program';
footnote 'X Program is not included';
 
ods layout gridded style=sasweb;
ods region ;
ods text='Completion Rate by Program by Section';
proc print data=sashelp.class noobs style(report header)={backgroundcolor=yellow};
run;
 
ods layout gridded y=4in columns=5 style=sasweb column_widths=(5.35in .5in .5in .5in .5in);
ods region;
ods text='Completion Rate by Program by XXXX';
proc print data=sashelp.class noobs style={backgroundcolor=yellow};
run;
 
ods layout end;
ods pdf close;
☑ This topic is solved.

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

Discussion stats
  • 1 reply
  • 413 views
  • 1 like
  • 2 in conversation