BookmarkSubscribeRSS Feed
fadel
Calcite | Level 5

hello

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

1 REPLY 1
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1482 views
  • 0 likes
  • 2 in conversation