DATA Step, Macro, Functions and more

exporting sas table to existing excel file

Reply
Contributor
Posts: 32

exporting sas table to existing excel file

hello

there is any option of export procedure to export tables to existing excel files ?

Super User
Super User
Posts: 7,430

Re: exporting sas table to existing excel file

Proc export doesn't really have that option unless you want to create a new sheet.  You can update exisiting Excel workbooks by use of libname see:

http://www2.sas.com/proceedings/sugi31/024-31.pdf

However it depends on what you want to do.  What is in the existing spreadsheet, is it tabular format or all mixed up.  You may find that its easier to export any data from SAS to CSV, then in your workbook write a VBA macro to import that data and process it into your file.  Remember, SAS deals with fixed structure datasets, much like a database.  Excel does not, it allows anything.  Therefore the two are not necessarily useable from the other.

Ask a Question
Discussion stats
  • 1 reply
  • 166 views
  • 0 likes
  • 2 in conversation