Practice for the SAS advance certification exam
A macro variable can be defined and referenced anywhere in a SAS program except within data lines.
Macro variables are always user-defined, and their values remain constant until they are changed by the user.
Macro variables are text strings that are independent of SAS data sets.
The values of macro variables can be up to 65,534 characters long.
Rate this question:
Title "Total Sales for '&month' ";
Title "Total Sales for 'month'";
Title "Total Sales for &month";
Title Total Sales for "&month";
Rate this question:
Options &month;
%PUT &month;
Options symbolgen;
%PUT the macro variable MONTH has the value &month.;
Rate this question:
&let location = storage;
Let &location = storage;
%let location = "storage";
%let location = storage;
Rate this question:
Sales Report for Southeast Area
Sales Report for "Southeast" Area
*Sales Report for "Southeast" Area*
* Sales Report for "Southeast" Area *
Rate this question:
%let currdate = %sysfunc(today(), worddate.);
%let currdate = &sysdate9;
%let currdate = %sysfunc(date());
All of the above
Rate this question:
Can be used to manipulate character strings in macro variable values.
Have the same basic syntax as the corresponding DATA step functions and yield similar results.
All of the above
None of the above
Rate this question:
Expressions, literals, names, and special characters.
Literals, names, numbers, and special characters.
Expressions, names, numbers, and special characters.
Expressions, literals, numbers, and special characters.
Rate this question:
month1 June month2 July period1 June July period2 May June period3 July Aug
month1 June month2 July period1 JuneJuly period2 MayJune period3 July.Aug
month1 June month2 July period1 JuneJuly period2 MayJune period3 JulyAug
month1 June month2 July period1 junejuly period2 Mayjune period3 julyaug
Rate this question:
title "Report for %sysfunc(left(%sysfunc(today(),worddate.)))";
title "Report for %sysfunc(left(today(), worddate.))";
title "Report for %sysfunc(left(%qsysfunc(today(), worddate.)))";
title "Report for %left(today(), worddate.))";
Rate this question:
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.