SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 36904: Exporting more than 255 variables from the SAS® System to a Microsoft Excel workbook

DetailsCodeAboutRate It

This sample program enables you to export more than 255 variables to an Excel workbook. The program, which runs in the third maintenance release of SAS® 9.1 (TS1M3) or later, enables you to perform the following tasks:

  • creating of a new workbook or additions to an existing workbook
  • creating of as many worksheets as Excel will permit
  • writing to either Excel XLS files (using the third maintenance release of SAS 9.1 (TS1M3) and SAS® 9.2) or XLSX files (using SAS 9.2 (TS2M0) and later).
  • using a set of common columns across all worksheets

All parameters for running the program are specified in the macro call at the bottom of the program. You should not have to make any changes in the actual program.

Note: Currently, the program is available for Windows environments that support the EXCEL engine.



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.