BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
Add a footnote statement before the next PROC REPORT to reset your FOOTNOTES. Note that footnotes come after the proc but need to be assigned before to have them available for usage. They also don't belong in the PROC REPORT.

View solution in original post

4 REPLIES 4
bobeng
Obsidian | Level 7

The code:

%macro psubpop;
ODS TAGSETS.EXCELXP file="T:\Folder\Outcomes 2019 &region..xml "
style=Htmlblue ;
ods tagsets.ExcelXP options
(embedded_titles='yes' embedded_footnotes='yes' ORIENTATION='Landscape' autofit_height='yes' sheet_interval='none' sheet_name="700");;

PROC REPORT DATA=All_Sti3 nowd headline headskip;
COLUMN outcomes outcome upstate &region. ;
define outcomes/display ' ' order style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.8in cellheight=30};
define outcome/display 'Outcome' order order=DATA style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=4in cellheight=30};
define upstate/display 'UPSTATE' style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.2in cellheight=30};
define &region./display "&region." style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.4in cellheight=30};
title1 height=10pt bold justify=left "Outcomes ~(super 1) January-December 2019 ";
where DIAGNOSIS='ES' and pop='M';
RUN;


PROC REPORT DATA=All_Sti3 nowd headline headskip;
COLUMN outcomes outcome upstate &region. ;
define outcomes/display ' ' group style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.8in cellheight=30};
define outcome/display 'Outcome' order order=DATA style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=4in cellheight=30};
define upstate/display 'UPSTATE' style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.2in cellheight=30};
define &region./display "&region." style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.4in cellheight=30};
title1 height=10pt bold justify=left "Outcomes2 ~{super 8} January-December 2019";
where DIAGNOSIS='ES' and pop='F';
footnote1 height=8pt justify=left
"~{super 1}OP's  ";
footnote2 height=8pt justify=left
"~{super 2}Number and percent of case assignments are based on report year ";
footnote3 height=8pt justify=left
"~{super 3}Testing ";
footnote4 height=8pt justify=left
"~{super 4}PrEP:Referral are calculated by excluding Current ";
RUN;
ods tagsets.excelxp close;

%mend;
%psubpop;

Reeza
Super User
Add a footnote statement before the next PROC REPORT to reset your FOOTNOTES. Note that footnotes come after the proc but need to be assigned before to have them available for usage. They also don't belong in the PROC REPORT.

Reeza
Super User
%macro psubpop;
ODS TAGSETS.EXCELXP file="T:\Folder\Outcomes 2019 &region..xml "
style=Htmlblue ;

ods tagsets.ExcelXP options
(embedded_titles='yes' embedded_footnotes='yes' ORIENTATION='Landscape' autofit_height='yes' sheet_interval='none' sheet_name="700");;

footnote;
title1 height=10pt bold justify=left "Outcomes ~(super 1) January-December 2019 ";

PROC REPORT DATA=All_Sti3 nowd headline headskip;
where DIAGNOSIS='ES' and pop='M';
COLUMN outcomes outcome upstate &region. ;
define outcomes/display ' ' order style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.8in cellheight=30};
define outcome/display 'Outcome' order order=DATA style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=4in cellheight=30};
define upstate/display 'UPSTATE' style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.2in cellheight=30};
define &region./display "&region." style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.4in cellheight=30};

RUN;



footnote1 height=8pt justify=left
"~{super 1}OP's  ";
footnote2 height=8pt justify=left
"~{super 2}Number and percent of case assignments are based on report year ";
footnote3 height=8pt justify=left
"~{super 3}Testing ";
footnote4 height=8pt justify=left
"~{super 4}PrEP:Referral are calculated by excluding Current ";

PROC REPORT DATA=All_Sti3 nowd headline headskip;
where DIAGNOSIS='ES' and pop='F';
COLUMN outcomes outcome upstate &region. ;
define outcomes/display ' ' group style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.8in cellheight=30};
define outcome/display 'Outcome' order order=DATA style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=4in cellheight=30};
define upstate/display 'UPSTATE' style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.2in cellheight=30};
define &region./display "&region." style(HEADER)={just=center font_weight=bold fontsize=2.8 vjust=bottom cellwidth=1.4in cellheight=30};
title1 height=10pt bold justify=left "Outcomes2 ~{super 8} January-December 2019";

RUN;
ods tagsets.excelxp close;

%mend;
%psubpop;

Something like this should work for you.

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
  • 4 replies
  • 374 views
  • 2 likes
  • 2 in conversation