sas-ods

SAS Conditional row highlighting with ODS and Proc Print

£可爱£侵袭症+ 提交于 2020-01-15 10:11:22
问题 I want to turn the entire row red for people whose names begin with 'J'. Is this possible using proc print ? ods html file=odsout style=htmlblue ; proc print data=sashelp.class noobs label; var name age; run; ods html close; 回答1: I don't believe it's possible with PROC PRINT. PROC REPORT can generate the identical output but with the rows red, however. Identical: proc report data=sashelp.class nowd; columns name age; run; With red: proc report data=sashelp.class nowd; columns name age;

SAS ODS Query/Statement print along with it's output

血红的双手。 提交于 2019-12-24 16:33:05
问题 SAS EG Is there any way I can print the query/statement used to get the output, along with the output, using SAS ODS? Suppose, ods pdf file=pdfile; proc sql; select a.* from tab1 a inner join tab2 b on a.something=b.something where <> having <>; quit; ods _all_ close; this would print the OUTPUT generated from the above query. But can I also get the query printed via the ods pdf along with the output? 回答1: There's no automatic way to redirect the log that I'm aware of. There are a few ways to

SAS: PROC SGPLOT BY GROUP auto file names

余生颓废 提交于 2019-12-11 04:48:51
问题 I am plotting some data using BY GROUP option. While I am able to use #byval option to automatically put BY GROUP value in title of each plot, but I want to save each plot individually and want to name it after #byval instead of calling it - SGPLOT01, SGPLOT02 ... e.g. Lets say I have: data xyz; input type$ x y1 y2@@; cards; A 1 5 7 A 2 7 9 A 3 8 10 B 1 5 7 B 2 7 9 B 3 8 10 ;; RUN; PROC SGPLOT DATA=xyz; by type; series1 x=x y=y1/markers; series2 x=x y=y2/markers; title "#byval"; RUN; In this

Is it possible to import a PNG file into SAS to include in RTF output?

荒凉一梦 提交于 2019-11-29 16:21:54
I have PNG files that were created outside of SAS that I would like to include in an RTF file that I will output from SAS using ODS. Is it possible to use SAS to do this? My internet searches are turning up a lot of irrelevant results. ODS RTF: The Basics And Beyond , is certainly relevant. Here's an example of doing this in body text not using the title. ods rtf file="c:\temp\test.rtf" startpage=never; ods escapechar='^'; proc print data=sashelp.class; run; ods text='^S={preimage="C:\temp\SGPlot.jpeg" just=c}'; proc print data=sashelp.class; run; ods rtf close; That's using a random SGPLOT I

Is it possible to import a PNG file into SAS to include in RTF output?

拜拜、爱过 提交于 2019-11-28 09:33:57
问题 I have PNG files that were created outside of SAS that I would like to include in an RTF file that I will output from SAS using ODS. Is it possible to use SAS to do this? My internet searches are turning up a lot of irrelevant results. 回答1: ODS RTF: The Basics And Beyond, is certainly relevant. Here's an example of doing this in body text not using the title. ods rtf file="c:\temp\test.rtf" startpage=never; ods escapechar='^'; proc print data=sashelp.class; run; ods text='^S={preimage="C: