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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 3303 views
  • 1 like
  • 2 in conversation