SAS ODS Query/Statement print along with it's output
问题 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