This video explains how to include and call a SAS macro. Section 4.1 of the %TVEM SAS Macro Users’ Guide includes text about these steps.
There are three basic steps needed before you can run a Methodology Center SAS macro.
If you haven’t already done so, download the %TVEM macro and save the macro to the designated path (e.g., S:myfolder).
Direct SAS to read the macro code from the path, using a SAS %INCLUDE statement, such as, “%INCLUDE ‘S:myfolderTVEM_v311.sas’;” Note: we suppose that the SAS macro file exists in the folder S:myfolder. This path represents any user-specified folder. This convention will be followed in the examples and the appendices.
Use a libname statement to direct SAS to the data file. The statement should give the libname command, name the library, and then identify the path to the data. For example, libname sasf ‘s:myfolder’;