The SAS Output Delivery System and reporting techniques

ungroup xlsx worksheets

Reply
New Contributor
Posts: 2

ungroup xlsx worksheets

When creating multiple worksheets in ODS excel  (SAS9.4)  the worksheets are grouped by default. 

The user of the XLSX has to ungroup them manually. 

How does one create ungrouped XLSX work sheets in ODS Excel 

regards 

gdsilvs

 

Grand Advisor
Posts: 10,210

Re: ungroup xlsx worksheets

I suggest that you show the code used to create them currently used.
New Contributor
Posts: 2

Re: ungroup xlsx worksheets

data abc;

label sex="sex";

a=1;b=1;sex='M'; output;

a=1;b=1;sex='F';output;

run;

proc sort ; by sex;

ods excel file="/usr/sas/work/sas/SAS_workgran.xlsx"

options

(sheet_interval='bygroups' suppress_bylines='no'

sheet_name='#byval(sex)'

);

proc report data=abc; by sex;

run;

ods excel close;

/* when the file SAS_workgran.xlsx is opened the worksheets are grouped */

Super User
Super User
Posts: 6,330

Re: ungroup xlsx worksheets

Does anyone have 9.4 TS1M4 to see if this is fixed in that version?

According to this page http://support.sas.com/kb/56/878.html it should be fixed, but I do not have access to that version to test.

SAS Employee
Posts: 274

Re: ungroup xlsx worksheets

This problem is corrected in the fourth maintenance release for SAS 9.4.  If you need a hotfix for SAS 9.4 M3, click the "Hot Fix" tab in the link that Tom provided.

 

Vince DelGobbo

SAS R&D

Ask a Question
Discussion stats
  • 4 replies
  • 414 views
  • 2 likes
  • 4 in conversation