I want to get rtf output. The first page has orientation=landscape, and the second page has orientation=portrait;
The below is my code. Why it does not work?
options orientation=landscape obs=5;
ods rtf file="C:\XXXXX\Desktop\111.rtf";
proc print data=sashelp.class;
run;
options orientation=portrait;
proc print data=sashelp.retail; run;
ods rtf close;
Another question is if I only use orientation=portrait, which option can put these two proc output in one page, not like above the outputs are on different pages? Thanks.
What do you mean by it does not work?
Are both landscape ? Are both portrait ? Is there a syntax error?
Next time post your log.
Meanwhile try next code (I haven't tested it):
options orientation=landscape obs=5;
ods rtf file="C:\XXXXX\Desktop\111.rtf";
proc print data=sashelp.class;
run;
ODS options orientation=portrait;
proc print data=sashelp.retail; run;
ods rtf close;
What do you mean by it does not work?
Are both landscape ? Are both portrait ? Is there a syntax error?
Next time post your log.
Meanwhile try next code (I haven't tested it):
options orientation=landscape obs=5;
ods rtf file="C:\XXXXX\Desktop\111.rtf";
proc print data=sashelp.class;
run;
ODS options orientation=portrait;
proc print data=sashelp.retail; run;
ods rtf close;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.