This SAS Chapter 12 quiz focuses on storing macro programs. It tests knowledge on %INCLUDE statements, storing macros in SAS catalogs, using the Stored Compiled Macro Facility, and creating permanently stored compiled macros. Essential for learners aiming to master SAS macro programming.
The macro processor does not compile a macro every time it is used.
The only compiled macros that the Stored Compiled Macro Facility can access are those that are stored in the Sasmacr catalog.
You need to specify the MSTORED and SASMSTORE system options.
All of the above
Rate this question:
Can be used to insert the contents of an external file into a program.
Will cause a macro definition that is stored in an external file to be compiled when the contents of that file are inserted into a program and submitted.
Can be specified with the SOURCE2 option in order to write the contents of the external file that is inserted into a program to the SAS log.
All of the above
Rate this question:
A session-compiled macro named Prtlast is stored in Work.Sasmacr.
A macro named Prtlast is stored in the autocall library. A macro named Prtlast is stored in the autocall library.
The Prtlast macro is stored as a stored compiled macro.
The Prtlast macro is stored as a SOURCE entry in a permanent SAS catalog.
Rate this question:
Copy the contents of the Sasmacr catalog to a temporary data set.
List the contents of the Sasmacr catalog as output.
Copy the contents of the output window to the Sasmacr catalog.
None of the above
Rate this question:
The macro definition can be submitted for compilation by using the FILENAME and %INCLUDE statements.
You can use the PROC CATALOG statement to compile the macro.
The SOURCE entry will be deleted at the end of the session.
You do not need to compile the macro before you invoke it in a program.
Rate this question:
libname macrolib 'c:\mylib'; options sasmstore; %macro prtlast; / store proc print data=&syslast (obs=5); title "Listing of &syslast data set"; run; %mend;
libname macrolib 'c:\mylib'; options mstored sasmstore=macrolib; %macro prtlast / store; proc print data=&syslast (obs=5); title "Listing of &syslast data set"; run; %mend;
libname macrolib 'c:\mylib'; options mstored sasmstore=macrolib; %macro prtlast; proc print data=&syslast (obs=5); title "Listing of &syslast data set"; run; %mend;
libname macrolib 'c:\mylib'; %macro prtlast / store; proc print data=&syslast (obs=5); title "Listing of &syslast data set"; run; %mend;
Rate this question:
Because these stored macros are compiled, you should save and maintain the source for the macro definitions in a different location.
The Stored Compiled Macro Facility compiles and saves compiled macros in a permanent catalog, in a library that you specify.
You do not need to specify any system options in order to use the Stored Compiled Macro Facility.
You cannot move a stored compiled macro to another operating system.
Rate this question:
libname mylib 'c:\mylib'; filename macsrc 'mylib.macsrc'; options mautosource sasautos=(macsrc, sasautos); %prtlast
libname mylib 'c:\mylib'; filename macsrc catalog 'mylib.macsrc'; %prtlast
filename mylib 'c:\mylib'; options mautosource sasautos=(sasautos,mylib); %prtlast
libname mylib 'c:\mylib'; options mautosource sasautos=mylib; %prtlast
Rate this question:
The autocall macro facility stores compiled SAS macros in a collection of external files called an autocall library.
Autocall libraries can be concatenated together.
One disadvantage of the autocall facility is that the first time you call an autocall macro in a SAS session, the macro processor must use system resources to compile it.
The autocall facility can be used in conjunction with the Stored Compiled Macro Facility.
Rate this question:
Quiz Review Timeline (Updated): Mar 15, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
SAS QUIZ(100% NEW AND REAL TIME QUESTIONS)
This SAS quiz features real-time questions assessing skills in data handling, debugging, and SQL operations within SAS. It is designed for learners seeking to test and enhance...
Questions:
20 |
Attempts:
483 |
Last updated:
Mar 20, 2023
|
SAS Chapter 22: Using Best Practices
In our ongoing SAS quiz series, we turn our attention to the different practices and which is the best to use in a given situation. What do you know about IF statements, PROC...
Questions:
5 |
Attempts:
106 |
Last updated:
Dec 06, 2023
|
SAS Chapter 11: Creating And Using Macro Programs
This quiz assesses knowledge in SAS Macro Programming, focusing on macro creation, parameter handling, and conditional statements. It tests the ability to define, reference, and...
Questions:
10 |
Attempts:
1202 |
Last updated:
Aug 21, 2023
|
SAS Chapter 10: Processing Macro Variables At Execution Time
This quiz, titled 'SAS Chapter 10: Processing Macro Variables at Execution Time,' tests knowledge on macro variable processing in SAS. It covers creating, assigning, and...
Questions:
10 |
Attempts:
354 |
Last updated:
Mar 17, 2023
|
SAS Chapter 9: Introducing Macro Variables
This SAS Chapter 9 quiz focuses on macro variables, testing understanding through questions on their creation, manipulation, and error handling. It's designed to enhance...
Questions:
10 |
Attempts:
724 |
Last updated:
Jan 30, 2024
|
Chapter 8: Managing Processing Using PROC SQL
This quiz in Chapter 8 focuses on managing processing using PROC SQL in SAS. It tests knowledge on syntax, options like INOBS, and specific SQL commands for data handling and...
Questions:
10 |
Attempts:
136 |
Last updated:
Mar 21, 2023
|
Wait!
Here's an interesting quiz for you.