In this course, you learn advanced techniques within the DATA step and procedures to manipulate data.
Course Learning Objectives: (3+ per course)
“By the end of this course, a learner will be able to…”
● Perform text substitution in SAS code.
● Use macro variables and macro functions.
● Automate and customize the production of SAS code.
● Conditionally or iteratively construct SAS code.
● Write self-modifying, data-driven programs.
In this module, you’ll begin with a brief course overview and set up your practice files. You’ll then explore SAS macro programming, including what the macro facility enables you to do and how it can make programming more efficient. You’ll also learn how SAS processes code behind the scenes and how macro language elements affect that processing, then practice creating and using macro variables to dynamically modify text in your programs.
涵盖的内容
20个视频3篇阅读材料7个作业
显示有关单元内容的信息
20个视频•总计28分钟
Course Overview•1分钟
Introduction•0分钟
Benefits of Using SAS Macro•2分钟
Efficiency of Macro-Based Applications•0分钟
Developing Macro Applications•1分钟
Introduction•0分钟
SAS Programming Languages•1分钟
Program Flow•1分钟
Tokens•2分钟
Tokenization•1分钟
Tokenizing Code with Macro Triggers•2分钟
Macro Variables•1分钟
Creating Macro Variables With %LET•3分钟
Deleting Macro Variables•1分钟
Resolving Macro Variables•4分钟
Using SYMBOLGEN to Troubleshoot Macro Variable References•1分钟
Delimiting Macro Variable References•2分钟
Displaying Macro Variables•1分钟
Automatic Macro Variables•1分钟
Updating Macro Variables•1分钟
3篇阅读材料•总计22分钟
Learner Prerequisites•2分钟
Access SAS Software & Set up Data(REQUIRED)•10分钟
Frequently Asked Questions•10分钟
7个作业•总计127分钟
SAS Macro Facility•50分钟
Knowledge Check: Tokens•2分钟
Knowledge Check: Program Flow•15分钟
Knowledge Check: SYMBOLGEN to Troubleshoot Macro Variable References•10分钟
Level 1 Practice: Defining and Using Macro Variables for Substitution•20分钟
Level 2 Practice: Using Macro Variable References with Delimiters •20分钟
Storing and Processing Text
第 2 单元•小时 后完成
单元详情
In this module, you learn more about storing and processing text. You learn to use macro functions to manipulate text, and how to use both PROC SQL and the DATA step to create macro variables based on values read from your data. You also learn how to use indirect referencing to look up a macro variable's value based on another macro variable.
涵盖的内容
19个视频17个作业
显示有关单元内容的信息
19个视频•总计49分钟
Introduction•1分钟
Using Macro Functions•1分钟
SAS Functions and Macro Functions•3分钟
Processing Text with Macro Functions•2分钟
Executing SAS DATA Step Functions During Tokenization•1分钟
Evaluating Arithmetic Expressions•3分钟
Using Special Characters•5分钟
Demo: Using Macro Functions•4分钟
Creating Macro Variables in PROC SQL•5分钟
Demo: Creating Macro Variables with a PROC SQL Query•4分钟
Scenario: Create Macro Variables in a DATA Step•2分钟
DATA Step versus Macro Execution Timing•2分钟
Creating Macro Variables in a DATA Step•3分钟
Creating Macro Variables During DATA Step Execution•2分钟
Demo: Creating Macro Variables with the DATA Step•4分钟
Comparing the DATA Step and PROC SQL•1分钟
Scenario: Using Indirect References•2分钟
Forward Rescan Rule•2分钟
Demo: Indirect References to Macro Variables•5分钟
17个作业•总计274分钟
Storing and Processing Text•50分钟
Activity 3.01•10分钟
Question 3.02•2分钟
Activity 3.03•10分钟
Activity 3.04•10分钟
Level 1 Practice: Using the %UPCASE and %SCAN Functions•20分钟
Level 2 Practice: Using Macro Quoting Functions•20分钟
Level 1 Practice: Using PROC SQL to Generate Macro Variables for Use in a Report Title•20分钟
Level 2 Practice: Using PROC SQL to Generate Macro Variables for Use in Subsequent Steps•20分钟
Activity3.05•10分钟
Question 3.06•2分钟
Activity 3.07•10分钟
Level 1 Practice: Creating Macro Variables with the SYMPUTX Routine•20分钟
Level 2 Practice: Using a DATA _NULL_ Step to Create a Series of Macro Variables•20分钟
Activity 3.08•10分钟
Level 1 Practice: Using Indirect References to Macro Variables•20分钟
Level 2 Practice: Using Indirect References to Macro Variables•20分钟
Working with Macro Programs
第 3 单元•小时 后完成
单元详情
In this module, you learn to write and call macro programs to generate SAS code based on input values. You also learn about macro variable scope - where macro variables are stored and how long they are available. Finally you learn about conditionally generating and processing code using macro IF/THEN statements, and iterative processing with macro DO loops.
涵盖的内容
29个视频19个作业
显示有关单元内容的信息
29个视频•总计63分钟
Introduction•1分钟
Defining a Macro•2分钟
Using the MCOMPILENOTE Option•0分钟
Calling a Macro•2分钟
Using the MPRINT Option•1分钟
Macro Parameters•1分钟
Demo: Defining a Macro with Parameters•4分钟
Macro Keyword Parameters•2分钟
Mixed Parameter Lists•1分钟
Global Macro Variables•2分钟
Local Macro Variables•1分钟
Macro Variable Scope•1分钟
Controlling Macro Variable Scope•3分钟
Resolving Macro Variables•1分钟
Nested Macro Calls•4分钟
Conditional Processing•3分钟
Conditionally Executing Program Steps•2分钟
Scenario: Nested Conditional Processing•1分钟
Conditionally Generating Program Steps•4分钟
Conditionally Generating Complete and Partial Statements•2分钟
Using the MLOGIC Option•1分钟
Demo: Conditional Processing•6分钟
Scenario: Generating Repetitive Code•1分钟
%DO Iterative Statement•4分钟
Demo: Iterative %DO Loops•4分钟
Using a %DO Loop with Indirect References•2分钟
Demo: %DO Loops with Indirect References•4分钟
%DO WHILE Loops•3分钟
%DO UNTIL Loops•1分钟
19个作业•总计287分钟
Working with Macro Programs •50分钟
Activity 4.01•10分钟
Activity 4.02•10分钟
Activity 4.03•10分钟
Level 1 Practice: Defining and Using a Macro with Parameters•20分钟
Level 2 Practice: Using a Macro to Generate PROC MEANS Code•20分钟
Question 4.04•2分钟
Activity 4.05•10分钟
Activity 4.06•10分钟
Level 1 Practice: Understanding Symbol Tables•10分钟
Level 1 Practice: Using Macro Conditional Processing to Choose Which SAS Statements are Generated•20分钟
Level 2 Practice: Using Macro Conditional Processing in Open Code•20分钟
Activity 4.09•10分钟
Code Challenge 4.10•5分钟
Level 1 Practice: Using Iterative Processing and Indirect Referencing•20分钟
Level 2 Practice: Using a %DO %UNTIL Loop•20分钟
Developing Macro Applications
第 4 单元•小时 后完成
单元详情
In this module you learn how to store and retrieve macros so they are available in any SAS session. You also learn to build data-driven macro applications that dynamically generate SAS code based on values in your data. Finally, you learn to build safety precautions and documentation into your macro applications so that they correct themselves if problems occur, or provide helpful messages to direct the user to a resolution.
Through innovative software and services, SAS empowers and inspires customers around the world to transform data into intelligence. 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.
When will I have access to the lectures and assignments?
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
What will I get if I subscribe to this Certificate?
When you enroll in the course, you get access to all of the courses in the Certificate, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.