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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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