Sample 43502: Add frozen column and row headings with the sample MSOffice2K_X tagset
The sample MSOffice2K_X tagset can be used to freeze column and row headings in an Excel worksheet. The row headings can be frozen using the FROZEN_ROWHEADERS= option. This option enables you to specify the column to freeze, and includes all of the columns to the left of the value specified.
The column headings in the worksheet can be frozen using the FROZEN_HEADERS= option. The argument specified for this option is the row number to freeze, and includes all of the rows that precede the argument specified.
The example code below demonstrates these options as well as using the URL access method to download the sample tagset from the ODS Markup download page. The tagset can also be downloaded from the following location:
http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html
ods path(prepend) work.templat(update);
filename temp url 'http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/msoffice2k_x.sas';
%include temp;
ods tagsets.msoffice2k_x file="c:\temp.xls"
options(frozen_headers="3"
frozen_rowheaders="3") style=normal;
proc print data=sashelp.orsales;
title "Freeze row and columns";
run;
ods tagsets.msoffice2k_x close;
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.
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 illustrates how to add frozen column and row headings with the sample MSOffice2K_X tagset.
| Date Modified: | 2012-02-09 13:47:10 |
| Date Created: | 2011-06-11 03:00:51 |
Operating System and Release Information
| SAS System | Base SAS | z/OS | 9.1 TS1M3 SP4 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
| Windows Vista | 9.1 TS1M3 SP4 | |
| Windows Vista for x64 | 9.1 TS1M3 SP4 | |
| 64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
| HP-UX IPF | 9.1 TS1M3 SP4 | |
| Linux | 9.1 TS1M3 SP4 | |
| Linux on Itanium | 9.1 TS1M3 SP4 | |
| OpenVMS Alpha | 9.1 TS1M3 SP4 | |
| Solaris for x64 | 9.1 TS1M3 SP4 | |
| Tru64 UNIX | 9.1 TS1M3 SP4 | |