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. If used to compare datasets, they must have their columns and rows 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

Related Files

Parameters
[in]libdsdataset to hash
[in]salt=Provide a salt (could be, for instance, the dataset name)
[in]iftrue=(1=1) A condition under which the macro should be executed
[out]outds=(work._data_) 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.