Hello,
I would like to do a checksum at the end of my SAS program in order to be able to identify if there has been any changes to my code since the last time I worked on it.
Has anyone done this before and would be able to provide some help? Or have a better solution for what I would like to do?
Thank you
Finally, i used the following solution to get the checksum of the current program I am running:
data checksum;
title "Checksum";
filename fn pipe "CertUtil -hashfile %sysget(SAS_EXECFILEPATH) MD5";
infile fn;
input;
Hash_Info = _infile_;
run;
proc print data=checksum NOOBS;
run;
Thanks for taking the time to help!
If you're using SAS EG or SAS Studio you can link your programs to a version control software or repository.
@megp wrote:
Hello,
I would like to do a checksum at the end of my SAS program in order to be able to identify if there has been any changes to my code since the last time I worked on it.
Has anyone done this before and would be able to provide some help? Or have a better solution for what I would like to do?
Thank you
Finally, i used the following solution to get the checksum of the current program I am running:
data checksum;
title "Checksum";
filename fn pipe "CertUtil -hashfile %sysget(SAS_EXECFILEPATH) MD5";
infile fn;
input;
Hash_Info = _infile_;
run;
proc print data=checksum NOOBS;
run;
Thanks for taking the time to help!
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.