SAS Tutorial | How to Create Macro Variables and Use Macro Functions

Опубликовано: 26 Май 2020
на канале: SAS Users
50,913
907

Using the SAS Macro Language, you can produce SAS programs that are easier to modify and maintain – or better yet, programs which modify and maintain themselves. In this SAS How to Tutorial, Stacey demonstrates using SAS macro variables to store text and substitute values dynamically in your program.

Download Data Files
See SASHELP data sets in SAS.

Chapters
00:00 – Overview of what you’ll learn
01:04 – What macro variables are and how you can create them
05:57 – Manipulating macro variables with macro functions
10:19 – Creating macro variables from data using SQL
14:58 – Using the trimmed option

Learn more about SAS Software
◉ SAS Macro Language 1: Essentials Course – https://support.sas.com/edu/schedules...
◉ Getting Started with the Macro Facility – https://go.documentation.sas.com/?doc...
◉ SAS Macro Language Documentation – https://go.documentation.sas.com/?cdc...
◉ Passing comma-delimited values into SAS macros and macro functions –
https://blogs.sas.com/content/sgf/201...
◉ Tip: %LET macro statement – https://communities.sas.com/t5/SAS-Co...
◉ How to create and use SAS macro functions – https://blogs.sas.com/content/sgf/202...

Related Videos
◉ SAS Enterprise Guide: Macro Variables –    • SAS Tip | SAS Enterprise Guide: Macro...  
Beyond the Basics of Macro –    • SAS Tutorial | Beyond the Basics of M...  
◉ Getting the Most out of SAS Macro and SQL –    • SAS Tutorial | Getting the Most out o...  
%SURVEYCORRCOV
◉ Macro: Complex Survey Data Correlations for Multivariate Analysis and Model Building –    • %SURVEYCORRCOV Macro: Complex Survey ...  


SUBSCRIBE TO THE SAS USERS YOUTUBE CHANNEL #SASUsers #LearnSAS
https://www.youtube.com/SASUsers?sub_...

ABOUT SAS
SAS is a trusted analytics powerhouse for organizations seeking immediate value from their data. A deep bench of analytics solutions and broad industry knowledge keep our customers coming back and feeling confident. With SAS®, you can discover insights from your data and make sense of it all. Identify what’s working and fix what isn’t. Make more intelligent decisions. And drive relevant change.

CONNECT WITH SAS
SAS ► https://www.sas.com
SAS Customer Support ► https://support.sas.com
SAS Communities ► https://communities.sas.com
SAS Analytics Explorers ► https://explorers.sas.com
Facebook ►   / sassoftware  
Twitter ►   / sassoftware  
LinkedIn ►   / sas  
Blogs ► https://blogs.sas.com
RSS ► https://www.sas.com/rss