Given an arbitrary file (not a .sas7bdat file), open the file using FILENAME statement/functions and read the header. Certain patterns in the header are a strong indicator the file may be a SAS data set.
Thanks to Thomas Billings for this tip. Read more details in this paper from WUSS 2017: Methods to Identify and Validate SASProprietary and AES Encrypted SAS Data Sets.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Register now!