When it comes to writing wrappers around data steps and procedures in SAS, SAS macros might still be the primary choice for most SASors. In the example below, I am going to show other alternatives to accomplish such task. First of all, let’s generate a toy SAS dataset as below. Based on different categories in …