BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
megp
Fluorite | Level 6

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

1 ACCEPTED SOLUTION

Accepted Solutions
megp
Fluorite | Level 6

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!

View solution in original post

4 REPLIES 4
Reeza
Super User

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


 

megp
Fluorite | Level 6
Thanks for the suggestion, however I want to avoid having to use a version control software or repository.

megp
Fluorite | Level 6

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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 5139 views
  • 2 likes
  • 2 in conversation