As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.
Here are some tips for How to share your SAS knowledge with your professional network.
USING SAS MACROS TO GENERATE CODE (SO YOUR PROGRAM CAN FIGURE OUT WHAT TO DO FOR ITSELF)
Nancy K. Blood
Ever find yourself trying to maintain multiple versions of essentially the same program? Each version may produce summary statistics for different variables (for example, HEIGHT and WEIGHT), or select different subsets of data for analysis (males, females, or age groups) but the numeric variables, the labels and format statements remain the same.
The techniques presented here use the SAS macro facility to demonstrate how designing your programs to be adaptable eliminates the need for multiple versions. You will structure your programs to use unique parameters you identify to generate the desired code.
View the pdf for this presentation.