Example: %chkfreq
Before analyzing any data, it is essential to have an overview of your data.
- What variables are available?
- What are the possible values for each variable?
- How often do they occur?
- Are there any unusual values that need to be checked?
- What about the values of several variables combined?
The %chkfreq routine allows you to extract all this information into an Excel file.
Each tab contains a summary of a table: the list of variables, their values, and their frequencies.
Customizing Our Macro to Your Company Standards
The structure of your metadata table is company specific.
Here are a few examples:
- MEMNAME is used to set a dataset name when MEMTYPE=DATA. What if your company is using DSNAME?
- NAME is used o set a variable name. What if your company is using VARNAME?
- TYPE=C or N when defining a variable type in SAS. What if your company is using CHAR an NUM?
- TYPE, FORMAT and LENGTH are three distinct variables in SAS. What if your company is using a single variable?
You have to use specific templates to document the validation of your standard macro.
We offer you th possibility to adapt our macro to your standards, both metadata structure and documentation.