BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ernie86
Calcite | Level 5

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;

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

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

1 REPLY 1
Ksharp
Super User

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;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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