Skip to content

Instantly share code, notes, and snippets.

@statgeek
Created February 8, 2021 22:27
Show Gist options
  • Save statgeek/154d4fcbbc7974453bbf1f4721ada3e9 to your computer and use it in GitHub Desktop.
Save statgeek/154d4fcbbc7974453bbf1f4721ada3e9 to your computer and use it in GitHub Desktop.
SAS - pipe output to different destinations
/*This is an example of how to control which output goes to which file*/
ods html (ID="dest2") file='/home/fkhurshed/Demo1/testODS1.html';
ods html (ID="dest3") file='/home/fkhurshed/Demo1/testODS2.html';
ods html (ID="dest2") select BasicMeasures;
ods html (ID="dest3") select Quantiles;
proc univariate data=sashelp.class;
run;
ods html (ID="dest2") close;
ods html (ID="dest3") close;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment