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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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