This sample uses the HTMLPANEL ODS tagset to put multiple graphs and tables on the same web page. The sample code in the Full Code tab creates HTML output which displays two graphs across the top of the web page and the output from two PROC PRINT steps across the bottom of the web page.
While this sample code uses the GIF device driver, you can use other device drivers, such as PNG or ACTIVEX, with the HTMLPANEL tagset.
Note that in the sample code, the value for the PANELCOLUMNS macro variable determines how many graphs and tables will display horizontally.
Find more information on the HTMLPANEL tagset here.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
data planets;
input Planet $ Distance;
datalines;
Mercury 43.4
Venus 68
Earth 94.5
Mars 155
Jupiter 508
Saturn 938
;
run;
%let panelcolumns = 2;
%let panelborder = 1;
/* This sample writes its output to C:\TEMP */
/* when run on the Windows operating system. */
/* Modify the destination on the FILENAME */
/* statement below if you want to write the */
/* output to a location other than C:\TEMP */
/* or if you are running on an operating */
/* system other than Windows. */
filename odsout 'c:\temp';
ods listing close;
ods tagsets.htmlpanel path = odsout
body = "htmlpanel.html";
ods tagsets.htmlpanel event=panel(start);
goptions
reset = goptions
device = GIF
xpixels = 400
ypixels = 400
ftext = 'Arial'
ftitle = 'Arial/bo'
htext = 10 pt;
pattern1 v=s c=vibg;
pattern2 v=s c=dabg;
pattern3 v=s c=mob;
pattern4 v=s c=day;
pattern5 v=s c=deoy;
pattern6 v=s c=grp;
title1 h=11 pt font='Arial/bo' 'Maximum Distance from the Sun';
title2 h=11 pt font='Arial/bo' 'for selected planets';
proc gchart data=planets;
vbar planet / sumvar = distance
subgroup = planet
ascending
nolegend;
run;
quit;
proc gchart data=planets;
hbar planet / sumvar = distance
subgroup = planet
ascending
nolegend;
run;
quit;
proc print data=planets;
run;
proc print data=planets;
run;
ods tagsets.htmlpanel event=panel(finish);
ods tagsets.htmlpanel close;
ods listing;
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
This sample code produces HTML output. Click here to view the HTML output.
Type: | Sample |
Date Modified: | 2010-02-03 15:21:43 |
Date Created: | 2009-12-08 10:13:02 |
Product Family | Product | Host | SAS Release | |
Starting | Ending | |||
SAS System | Base SAS | z/OS | 9.1 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | |||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M0 | |||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M0 | |||
Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |||
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |||
Microsoft Windows 2000 Server | 9.1 TS1M0 | |||
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |||
Microsoft Windows NT Workstation | 9.1 TS1M0 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | |||
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | |||
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | |||
Microsoft Windows XP Professional | 9.1 TS1M0 | |||
64-bit Enabled AIX | 9.1 TS1M0 | |||
64-bit Enabled HP-UX | 9.1 TS1M0 | |||
64-bit Enabled Solaris | 9.1 TS1M0 | |||
HP-UX IPF | 9.1 TS1M0 | |||
Linux | 9.1 TS1M0 | |||
OpenVMS Alpha | 9.1 TS1M0 | |||
Tru64 UNIX | 9.1 TS1M0 |