BookmarkSubscribeRSS Feed
Jackie_Stanbank
Calcite | Level 5
hi would like to export a file to a certain sheet in excel, but instead of replacing the data, i would like to append.

how do i do this?
2 REPLIES 2
Bill
Quartz | Level 8
One way would be first import the data into SAS, append the new data to the SAS dataset and then export the new larger SAS dataset to excel - replacing the original excel file.

This does keep the process within the confines of proc import and export.
SASKiwi
PROC Star
Try this test:

LIBNAME WrkBk EXCEL "My Workbook.xls" VER=2000;

DATA WrkBk.class;
SET sashelp.class;
RUN;

LIBNAME WrkBk CLEAR;

LIBNAME WrkBk EXCEL "My Workbook.xls" SCAN_TEXT=NO;

PROC APPEND BASE=WrkBk.class
DATA=sashelp.class;
RUN;
LIBNAME WrkBk CLEAR;

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

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 3091 views
  • 0 likes
  • 3 in conversation