BookmarkSubscribeRSS Feed
sneha_dodle
Fluorite | Level 6
Hello
Im creating. xlsx spreadsheets of 11 datasets using ods excel. i got all the datasets except for one which was an empty dataset. How do i get the empty dataset into the spreadsheet using ods excel?
The code i used is
ods excel file='c:..............\report.xlsx' options(sheet_interval='proc's heet_name='sheet1');
Proc print data=one;
Run;
ods excel options(sheet_name='sheet2');
Proc print data=empty;
Run;
.
.
.
.
.
ods excel close;

The dataset empty has no observations. I want a sheet that has only variable names.. But when i run the code, the sheet related to dataset empty is missing. Is there a way to get that sheet using ods excel?
1 REPLY 1

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 3624 views
  • 1 like
  • 2 in conversation