STAT 440 Lecture Notes - Lecture 9: Global Macro

59 views3 pages

Document Summary

Sas has a powerful programming feature called macros which allows us to avoid repetitive sections of code and to use them again and again when needed. It also helps create dynamic variables within the code that can take different values for different run instances of the same code. Macros can also be declared for blocks of code which will be reused multiple times in a similar manner to macro variables. We will see both of these in the below examples. These are the variables which hold a value to be used again and again by a sas program. They are declared at the beginning of a sas program and called out later in the body of the program. They can be global or local in scope. They are called global macro variables because they can accessed by any sas program available in the sas environment. In general they are the system assigned variables which are accessed by multiple programs.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related textbook solutions

Related Documents

Related Questions