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

My SAS version is 9.4 L1M5.

I can use function md5.

 

data null;
  message = "The quick brown fox jumps over the lazy dog";
  md5 = put(md5(message),$hex.); 
  put md5= ;
run;

md5=9E107D9D372BB6826BD81D3542A419D6

But I get error when I replace md5() by hashing().

 

 

data null;
  message = "The quick brown fox jumps over the lazy dog";
  md5 = put(hashing('md5',message),$hex.); 
  put md5= ;
run;

ERROR 68-185: The function HASHING is unknown, or cannot be accessed.

Somebody help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
It's under CAS though under categories. Are you running CAS?

View solution in original post

5 REPLIES 5
PeterClemmensen
Tourmaline | Level 20

The doc says : "This function is available beginning in SAS 9.4m6."

whymath
Barite | Level 11

But I can see it in my help document, isn't it weird?

whymath_0-1634893340362.png

 

PeterClemmensen
Tourmaline | Level 20

Perhaps, I never use the help document 🙂

Reeza
Super User
It's under CAS though under categories. Are you running CAS?
Patrick
Opal | Level 21

Works for me under SAS9.4 with a recent enough maintenance release.

data null;
  message = "The quick brown fox jumps over the lazy dog";
  md5 = put(hashing('md5',message),$hex32.); 
  sas_version="&sysvlong.";
  os="&SYSSCPL";
  put md5= ;
run;

Patrick_0-1634955385467.png

 

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
  • 5 replies
  • 1509 views
  • 0 likes
  • 4 in conversation