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!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.