Hello. I'm trying to do different tables with proc tabulate where I have the first one on a page in portrait orientation, then the next one in landscape orientation, and then back to portrait orientation.
This is the code I am using for the first one in portrait orientation, followed by the error I'm getting. Any help would be much appreciated.
ods graphics on;
56 ods RTF options (ID=EGRTF Orientation="Portrait");
_______ ___________
22 79
202 202
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ANCHOR,
AUTHOR, BASE, BODY, BOOKMARK, BOX_SIZING, CHARSET, CLOSE,
COLUMNS, CONTENTS, CSSSTYLE, DATAPANEL, DOM, DPI, ENCODING,
EXCLUDE, FILE, FONTSCALE, GFOOTNOTE, GTITLE, HOST, IMAGE_DPI,
KEEPN, LSTPIPE, NEWFILE, NOCONTENTS, NOGFOOTNOTE, NOGTITLE,
NOKEEPN, NOLSTPIPE, NOOUTLINE, NOTRKEEP, OPERATOR, OUTLINE,
PACKAGE, PATH, RECORD_SEPARATOR, SAS, SASDATE, SELECT, SGE, SHOW,
STARTPAGE, STYLE, TEXT, TITLE, TRANTAB, TRKEEP.
ERROR 79-322: Expecting a ).
ERROR 202-322: The option or parameter is not recognized and will be ignored.
Please post log entries, especially with errors, into a code box opened using the forum's {I} to preserve text formatting.
The underscore characters indicate where SAS found something syntactically incorrect but the way you have posted the result the underscores do not align with problem. Generally the message windows on this forum will reformat text making the diagnostics hard to read.
I don't believe the OPTIONS ()option is available with ODS RTF but with ODS TAGSETS.RTF. I think that the (Id= ) would also go outside the OPTIONS ()
I am not sure it is possible to actually change the orientation within an ODS RTF with SAS options. You may need to insert RTF codes to set the start / end of a section and the RTF code for portrait/landscape. The option SECT= might help with that but I don't know the RTF codes needed.
Please post log entries, especially with errors, into a code box opened using the forum's {I} to preserve text formatting.
The underscore characters indicate where SAS found something syntactically incorrect but the way you have posted the result the underscores do not align with problem. Generally the message windows on this forum will reformat text making the diagnostics hard to read.
I don't believe the OPTIONS ()option is available with ODS RTF but with ODS TAGSETS.RTF. I think that the (Id= ) would also go outside the OPTIONS ()
I am not sure it is possible to actually change the orientation within an ODS RTF with SAS options. You may need to insert RTF codes to set the start / end of a section and the RTF code for portrait/landscape. The option SECT= might help with that but I don't know the RTF codes needed.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.