The data used is internal SAS metadata regarding ODS styles. It is generated by SAS itself via `PROC TEMPLATE` and exposed by the system table `DICTIONARY.STYLES`, which does not require the creation or access to specific external data.
1 Code Block
PROC TEMPLATE
Explanation : This block uses the `PROC TEMPLATE` procedure to list all registered ODS (Output Delivery System) styles available in the SAS environment. The `LIST STYLES` statement sends the list of style names directly to the SAS log. This approach is useful for a quick and informal check of styles without creating intermediate data.
Copied!
proc template;
list styles;
run;
1
PROC TEMPLATE;
2
list styles;
3
RUN;
2 Code Block
PROC SQL
Explanation : This block uses the `PROC SQL` procedure to query the system table `DICTIONARY.STYLES`. This table contains metadata about all ODS styles, including their names. Executing this query allows obtaining this information in table form, which is particularly useful for in-depth analysis, for integrating style names into other SAS processes, or for generating dynamic reports on available styles.
Copied!
proc sql;
select * from dictionary.styles;
quit;
1
PROC SQL;
2
select * from dictionary.styles;
3
QUIT;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
« The Output Delivery System (ODS) is the engine that separates your data from its presentation. Mastering how to list and query styles is the first step toward professional, automated reporting. This script highlights the two most effective ways to audit your design environment, whether you are working in SAS 9 or the cloud-native SAS Viya. »
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.