SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 57766: Add multiple tables and graphs to each worksheet using the ODS Destination for Excel

DetailsCodeOutputAboutRate It

You can add multiple tables or graphs to each worksheet with the ODS Destination for Excel beginning with the fifth maintenance release of SAS® 9.4 (TS1M5). This can be accomplished by specifying the SHEET_INTERVAL="NOW" option.

If you are using a release of SAS prior to SAS 9.4 (TS1M5), you can use the use the SHEET_INTERVAL="OUTPUT" option along with adding a dummy procedure or DATA step. The dummy procedure or DATA step creates an output object that can then be excluded from the worksheet using the ODS EXCLUDE statement.

Click the Full Code tab to see example code that generates two tables on each worksheet.

The pre-production version of the ODS Destination for Excel generated a new worksheet whenever the SHEET_NAME= option was encountered. This is not the same behavior for the production release.




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.