Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mp_hashdataset.sas File Reference

Returns a unique hash for a dataset. More...

Go to the source code of this file.

Detailed Description

Ignores metadata attributes, used only to hash values. Compared datasets must be in the same order.

%mp_hashdataset(sashelp.class,outds=myhash)

data _null_;
  set work.myhash;
  put hashkey=;
run;

sas md5 hash dataset log results

SAS Macros

Parameters
[in]libdsdataset to hash
[in]salt=Provide a salt (could be, for instance, the dataset name)
[out]outds=(work.mf_hashdataset) The output dataset to create. This will contain one column (hashkey) with one observation (a hex32. representation of the input hash)
hashkey:$32.
28ABC74ABFC45F50794237BA5566E6CA
Version
9.2
Author
Allan Bowe

Definition in file mp_hashdataset.sas.