Do you use programs containing ampersands and percent signs? If so, you are using SAS macros.
The macro facility allows you to perform text substitution using macro variables and macro programs. Macros make life easier for the programmer by automating and customizing the generation of SAS code.
In this SAS tutorial, John will demonstrate a basic understanding of the macro facility by starting with a review of the %LET statement, CALL SYMPUTX routine, INTO clause, macro conditional and iterative processing statements and macro program syntax. He will also discuss double periods, multiple ampersands, macro quoting and the macro IN operator. He’ll wrap up with examples of I/O functions, dictionary tables, the DOSUBL function and branching within a macro program.
Note: First shared online during the virtual SAS Global Forum 2020 conference, this tutorial is extremely popular among those who need to learn or refresh their SAS macro skills!
... View more