BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
cuevasj
Quartz | Level 8

I am trying to get two proc reports to display on one excel worksheet, but I keep getting two worksheets, one for each proc report.

 

/************************************/


%let _odsdest=tagsets.excelxp;
%let rc=%sysfunc(stpsrv_header(Content-type,application/vnd.ms-excel));
%let rc=%sysfunc(stpsrv_header(Content-disposition,attachment%str(;) filename=FDU_Report_&doe_year._SchoolNo_9876_&today..xml));

%stpbegin();

 

proc sql;

...

quti;
proc sql;

...

quit;

 

ods tagsets.excelxp options(frozen_headers='1'
autofilter='yes'
autofit_height='yes'
sheet_name='FDU Report');

%let bwidth=borderleftwidth=1px borderrightwidth=1px borderbottomwidth=1px bordertopwidth=1px;
%let bstyle= borderleftstyle=solid borderrightstyle=solid borderbottomstyle=solid bordertopstyle=solid;
options missing=' ' nomprint nomlogic;

proc report data=overall_detials missing nowd split='~';

...

run;

proc report data=details missing nowd split='~' ;

...

run;


ods _all_ close;


What am I missing or can this not be done??

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Tagset option: sheet_interval="none"

This will put all output on the same sheet.

View solution in original post

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Tagset option: sheet_interval="none"

This will put all output on the same sheet.

Cynthia_sas
SAS Super FREQ
Hi:
The only way I know to get 2 procedures on one sheet with ODS TAGSETS.EXCELXP or ODS EXCEL is to use the SHEET_INTERVAL= suboption. I do not see that in your code. There have been several other postings about the use of SHEET_INTERVAL, I think you'll find them if you search.

Cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 3572 views
  • 1 like
  • 3 in conversation