Skip to content

Instantly share code, notes, and snippets.

@statgeek
Created September 10, 2018 19:27
Show Gist options
  • Select an option

  • Save statgeek/48502af614d72f51ea3c714c73e3604e to your computer and use it in GitHub Desktop.

Select an option

Save statgeek/48502af614d72f51ea3c714c73e3604e to your computer and use it in GitHub Desktop.
SAS - check if ODS GRAPHICS is enabled
/*This program checks if the ODS GRAPHICS option is enabled
Originally from:
https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-you-query-if-ODS-GRAPHICS-is-on-or-off/m-p/494271
*/
*check current status;
%put NOTE:- Current Status = &sysodsgraphics;
*turn on graphics, explicitly;
ods graphics on;
*check status;
%put NOTE:- Status On = &sysodsgraphics;
*Turn off graphics off;
ods graphics off;
*check status;
%put NOTE:- Status Off = &sysodsgraphics;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment