BookmarkSubscribeRSS Feed
forumsguy
Fluorite | Level 6

I am stuck in identifying the way to send out email notification to users about any changes in one of our reference table.

My table goes like this

REF_CUST_DETAILS

CUST_IDACCOUNT_IDCITYCENTRE
112AhmedabadGujarat
233BangaloreKarnataka
3123ChennaiTamilnadu
4232DelhiDelhi
57688MumbaiMH
6890NagpurMH
789RaipurMP
856TrivendrumKerala

This is our static reference table so whenever there is any changes in format of columns (Like increasing length,changing data types etc) and any changes in observations (Addition,Deletion,Update of any columns ), we should get an email that the table was changed. I can think of having change tracking like SCD type2 or type1 but simply dont  know how to implement that using SAS base coding..

Need your valuable suggestions on this

2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12

I'm not sure how to trigger it by a change, but you could run a SAS program periodically (nightly?) that uses PROC COMPARE to compare the PROC CONTENTS output from the table with a reference version of the contents and have the program logic decide on sending an e-mail.

ballardw
Super User

And conditionally update the reference table.

I would likely create a "change table" with the dates of the changes as well in case a history of changes becomes important.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

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