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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 373 views
  • 0 likes
  • 3 in conversation