RW9 wrote:
Note, this post is from 2013! IMO your on a road to nowhere there, trying to fit a structured controlled set of data into an uncontrolled free for all excel mess. You will hit many problems. There are many options to get data out of SAS:
DDE - old technology, wouldn't recommend.
Export - basic guessing
tagsets.excelxp - creates nice functional reports
CSV - basic data output
Now we look at what you want, to include a third party software. This doesn't fit to any of the above, so your going to have to force it somehow. Me, I would export your data as CSV. Then in your Excel template files have a OnLoad VBA macro which locates this CSV file, loads it and processes it into your template file.
The other way of course, is to libname to your Excel file, and write data directly: http://www2.sas.com/proceedings/sugi31/024-31.pdf
Personally I don't like it as it adds a locking to the file plus potential other things.
Either way your trying to force your data into the hole which is Excel, be prepared for things changing in the Excel file, mismatches, lack of validation etc.
Thanks for the reply. We don't have the libname engine. However, I was able to do what I wanted using proc export like this: /* export the data for the provider to a spreadsheet */ proc export data=&provider file="&prgdata./&provider._test.xlsx" dbms=xlsx replace; sheet='Template'; run; I think this is new in 9.4.
... View more