BookmarkSubscribeRSS Feed
kajal_30
Quartz | Level 8

Hi Team,

 

I am creating one excel report from a dataset with two months of data set and I want to create 2 tables on one tab in excel file for each months data.

 

Please help

Thanks

4 REPLIES 4
PaigeMiller
Diamond | Level 26

@kajal_30 wrote:

Hi Team,

 

I am creating one excel report from a dataset with two months of data set and I want to create 2 tables on one tab in excel file for each months data.

If you are using ODS EXCEL, you can use the option sheet_interval='NONE' which forces all output onto one tab (until you change it).

--
Paige Miller
Cynthia_sas
Diamond | Level 26

Since there's no date, here's an example using SASHELP.CLASS and using BY group processing for 2 age values:

Cynthia_sas_0-1595525410568.png

If you don't like the BY line, you can turn that off using system options.

Hope this helps,

Cynthia

kajal_30
Quartz | Level 8

Thanks For your reply.

 

While using the same approach it says 

ERROR: Unable to load module 'SpreadsheetML' from template store!

EROR: No body file.EXCEL output will not be created.

Cynthia_sas
Diamond | Level 26
Hi:
What version of SAS are you running? To find out, do this:
proc setinit;
run;
The version information will be at the top of the details written to the SAS log.

Cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 1157 views
  • 0 likes
  • 3 in conversation