Will it works if the new data is inserted or if any existing data is deleted?
If my trans data is as below then the MASTER dataset is not updating as we want. I tried to tweak your code but it didn't helped either.
data TRANS; input (Id Name Sales Transaction Example Act_Ind Valid_From Valid_To) (:$20.); cards; 4 Track False 10 121216 Y 20200404T000000 99991231T235959 run;
Did you read the document I pointed to?
To insert new records, you need to test for _DSENOM and output the new record.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.