This program uses the ODS 'htmlpanel' tagset (included via an external .tpl file) to arrange the results of several procedures in a grid layout. Here, three 'sashelp.class' tables are displayed side-by-side or according to the column configuration defined in the ODS options.
Data Analysis
Type : SASHELP
The data used comes exclusively from the standard example table 'sashelp.class'. However, the script depends on an external code/template file 'htmlpanel.tpl'.
1 Code Block
MACRO & SETUP
Explanation : Inclusion of the tagset definition file (template) and definition of a macro variable for the number of columns (although the option is overridden below).
Copied!
%inc "htmlpanel.tpl";
%let panelcolumns = 2;
1
%inc "htmlpanel.tpl";
2
3
%let panelcolumns = 2;
2 Code Block
ODS
Explanation : Opening the ODS destination using the 'htmlpanel' tagset. The 'panelcolumns' option is set to 3. The 'panel(start)' event initializes the grid.
Explanation : Execution of three identical PRINT procedures. Thanks to the active tagset, these outputs will be positioned in the panels of the generated HTML grid.
Explanation : Closing the panel event, finalizing the grid layout in the HTML file.
Copied!
ods tagsets.htmlpanel event = panel(finish);
1
ods tagsets.htmlpanel event = panel(finish);
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.
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.