BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
David_T
Calcite | Level 5

Hello,

In SAS Enterprise Guide (7.1), I have a temporary current snapshot data table that I want to append into a permanent table.  The permanent table would then hold multiple snapshots of the data and keep that history.  The columns between the two tables are exactly the same.  The permanent table has already been created and the initial data set has been loaded, now I want to add a new snapshot to the permanent table.

 

I have attempted to use the 'Append Table' task (from one WORK table), but it overwrites the data in the permanent table rather than adding new rows to it.  There is just one source temporary table.

 

Below is an example of some code I have attempted to use, but it isn't complete and doesn't work.

DATA PERMANENT.SNAPSHOT_ALL;
SET WORK.SNAPSHOT_CURRENT;
RUN
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Append is the correct task for this. Can you post a snapshot of your settings that didn't work? 

 

Otherwise

 

proc appemd base=permanent.snapshot_all data=snapshot.curremt;

run;

View solution in original post

2 REPLIES 2
Reeza
Super User

Append is the correct task for this. Can you post a snapshot of your settings that didn't work? 

 

Otherwise

 

proc appemd base=permanent.snapshot_all data=snapshot.curremt;

run;

David_T
Calcite | Level 5

Hi Reeza,

Thank you, that PROC APPEND function worked.  I used:

 

proc append base=PERMANENT.SNAPSHOT_ALL data=WORK.SNAPSHOT_CURRENT;

run;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 2127 views
  • 0 likes
  • 2 in conversation