BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Banana19
Obsidian | Level 7

Hi All,

As my subject line says, I was wondering whether it is possible to have multiple tables next to each other in a single excel spreadsheet. I tried ODS Excel option 'START_AT= 1,1', 'START_AT= 1,6', 'START_AT= 1,12' for each table I'm using but it is only taking the first START_AT option and displaying the rest of the tables under the first table in vertical manner.

 

Current Output:-

Rahul19_0-1661798363006.png

Expected Output:-

Rahul19_1-1661798434857.png

 

It would be great if you could help me with this.

 

Thanks,

BD

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
Unfortunately no option to natively do this within ODS Excel at the moment 😞

View solution in original post

7 REPLIES 7
ghosh
Barite | Level 11

One possible solution: 

you could use ODS Layout Gridded and specify an html output that can be opened into excel.

 

filename xlout '~/test/gridded.html';
ods html file=xlout options(pagebreak='no');

ods layout gridded columns=3 column_gutter=1in;
ods region style={background=lightblue}; title 'This is the REGION 1 TITLE'; footnote 'This is the REGION 1 FOOTNOTE'; proc print data=sashelp.class(obs=10); run; ods region style={background=white}; /* insert space between two tables */ ods region style={background=lightgreen}; title 'This is the REGION 2 TITLE'; footnote 'This is the REGION 2 FOOTNOTE'; proc print data=sashelp.class(firstobs=11 obs=21); run; ods layout end; ods html close;

 ghosh_0-1661885079164.png

 

Banana19
Obsidian | Level 7

Thanks for the reply! For some reason my users requested the report should only be in excel. So they changed the requirements. 🙂

Reeza
Super User
If you have Adobe Pro and save it to PDF and then save to Excel from Adobe you'll have the desired format but a bit roundabout for sure.
Banana19
Obsidian | Level 7
Oh okay. But I do not have Adobe PRO and the report will be exported to the users server. So once the code is kicked off, I cannot intervene. Thank you!
Reeza
Super User
Unfortunately no option to natively do this within ODS Excel at the moment 😞

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
  • 7 replies
  • 9140 views
  • 4 likes
  • 5 in conversation