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;
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;
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;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: