BookmarkSubscribeRSS Feed
fredee1_labcorp
Calcite | Level 5
Does anyone have the source code for David Brown's %sas2xl SAS macro that I can have? David presented this macro at Sugi 30 (paper 092-30) "%sas2xl: A Flexible SAS® Macro That Uses Tagsets to Produce Complex, Multi-Tab Excel Spreadsheets with Custom Formatting"
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
You might try contacting the author for the macro code. Or, consider using the TAGSETS.EXCELXP destination -- which has a lot of the functionality mentioned in his paper:
[pre]
ods tagsets.excelxp file='somesheets.xls' style=sasweb;

proc print data=sashelp.class;
run;

proc means data=sashelp.class min mean max;
var age height;
run;

ods tagsets.excelxp close;
[/pre]

You should then get 2 worksheets. One for each procedure. You can specify a different point for making different sheets (such as every table, every BY group, every output object, etc). TAGSETS.EXCELXP is self documenting in the latest versions and has ways for you to specify many enhancements to the spreadsheet.

Check with the ODS MARKUP site for more information:
http://support.sas.com/rnd/base/topics/odsmarkup/

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
  • 1 reply
  • 683 views
  • 0 likes
  • 2 in conversation