@Deepuu wrote:
Need a Macro to update the values in the Sas dataset automatically if there is an update in excel sheet , if there is no update then the data set should not update. Please help me with code as I am starter. Thank u all!
1) Explain why you need a macro, and what you think that will get you?
2) Define "automatically".
3) Is your dataset an exact replica of your Excel worksheet? If so, then just reimport the worksheet and overwrite your dataset. If not, then add more detail to your question.
You will need to
Always keep in mind, that using an Excel sheet as data-source is close to the worst decision possible, when deciding about file-types. There are numerous posts explaining the problems that will occur, so i skip that now.
Since a change in the spreadsheet might easily cause a change in the structure of the dataset, updates cannot be done (simply) in a reliable way.
You can only rewrite the dataset and try to live with the unpredictable results.
To make such a process sustainable and reliable, you need to cut Excel out of your data processing chain.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.