Complete SAS Programming Guide - Learn SAS and Become a Data Ninja - Storing Macros (External)

Complete SAS Programming Guide - Learn SAS and Become a Data Ninja - Storing Macros (External)

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains how SAS macros are typically stored temporarily and introduces a method to store them permanently by saving them to external files. It details the use of the percent include statement to compile macros from these files and provides an example using the report condition macro. The tutorial also clarifies the process of running and invoking macros, emphasizing the importance of understanding macro compilation and invocation to avoid duplicate outputs.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens to session-compiled macros at the end of a SAS session?

They are archived.

They are deleted.

They are transferred to a new session.

They are saved automatically.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one method to store SAS macro programs permanently?

Print them out.

Store them in an external file.

Save them in the cloud.

Use a database.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What statement is used to compile a macro from an external file in SAS?

percent run

percent include

percent execute

percent compile

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'source 2' option do when using the percent include statement?

It displays the SAS statements in the log.

It saves the macro to a new file.

It deletes the macro after use.

It compiles the macro twice.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why might a macro appear twice if invoked after using the percent include statement?

The macro is not compiled correctly.

The macro is called twice in the program.

The include statement runs the macro twice.

The macro is defined twice in the file.