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

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
Lapis Lazuli | Level 10

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

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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