BookmarkSubscribeRSS Feed
RajatV
Calcite | Level 5

Scenario: Basically my requirement is "A" table is getting refresh on daily basis. so today i got 10 records. Tomm again table get refresh and get 15 records so might be records get added, updated or deleted so prepare this kind of SAS code ? Please help

2 REPLIES 2
Kurt_Bremser
Super User

Hi and welcome to the communities!

 

If you want deleted observations to be removed anyway, just overwrite the old table with the new.

If you need deleted observations to be kept, but marked, you will need to use a data step interleave.

Please post examples (as text!) of your existing dataset, the delta dataset, and the expected outcome.

Sajid01
Meteorite | Level 14

Hello @RajatV 
Please have a look here https://documentation.sas.com/doc/en/etlug/4.904/p135va247x8srjn1gu7wzjc7cps9.htm so that you can decide what you need.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 886 views
  • 0 likes
  • 3 in conversation