BookmarkSubscribeRSS Feed
KBACHU
Fluorite | Level 6

Hi All, I am trying to call md5 algorithm from my SAS program. Can anyone help on doing this? I currently dont have md5 installed on my system.

2 REPLIES 2
KachiM
Rhodochrosite | Level 12

Md5() is a SAS function and there is no need to install it.

 

Give a String with a length less than 256 bytes and get a 16-byte value. An example:

 

mymd5 = md5("This is a big string");

ballardw
Super User

Are you asking about the SAS function MD5? The function takes any string as the argument and returns a 128-bit hash value.

data junk;
   y = md5('abc');
   z = md5('access method');
   put y= / y = hex32.;
   put z= / z = hex32.;
run;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 738 views
  • 0 likes
  • 3 in conversation