Explore key SAS functionalities in 'SAS Chapter 13: Creating Samples and Indexes'. This quiz assesses your ability to manipulate data sets using sampling techniques and indexes, crucial for efficient data management and analysis in SAS programming.
proc sql; create index origin on revenue(origin); quit;
proc sql; modify revenue; index=origin; quit;
proc sql data=revenue; create index origin; quit;
proc sql; index=origin on revenue; quit;
Rate this question:
PROC DATASETS.
PROC SQL.
The DATA step with the INDEX= option, to rebuild the data set.
Any of the above
Rate this question:
Ceil(ranuni(50))
Ranuni(50)
Ceil(ranuni(0)*50)
Ceil(ranuni(0))*50
Rate this question:
options msglevel=i; data flights index=(Fromto=origin dest); set sasuser.revenue; run;
options msglevel=n; data flights (index=(Fromto=origin dest)); set sasuser.revenue; run;
options msglevel=i; data flights (index=(Fromto=(origin dest))); set sasuser.revenue; run;
options msglevel=n; data flights (index=Fromto); set sasuser.revenue; run;
Rate this question:
When you add observations to a data set, the index(es) are automatically updated with additional value/identifier pairs.
When you rename a variable that is used as the key variable in a simple index, you must re-create the index.
When you delete a data set, the index file remains until you delete it as well.
When you copy a data set with the COPY statement, you must also copy the index file in another step.
Rate this question:
Automatically during compilation of the DATA step.
Automatically during execution of the DATA step.
During compilation of the DATA step, by program statements.
During execution of the DATA step, by program statements.
Rate this question:
data sample; set sasuser.sale2000 point=thisone nobs=totnum; output; stop; run;
data sample; do thisone=100 to totnum by 100; set sasuser.sale2000 point=thisone nobs=totnum; output; end; stop; run;
data sample; do thisone=100 to 1000 by 100; set sasuser.sale2000 point=thisone; output; end; stop; run;
data sample; do thisone=100 to totnum by 100; set sasuser.sale2000 point=thisone nobs=totnum; end; run;
Rate this question:
PROC COPY or the COPY statement in PROC DATASETS.
PROC CONTENTS or the CONTENTS statement in PROC DATASETS.
The MSGLEVEL= system option and a PROC PRINT step.
Any of the above
Rate this question:
proc print data=sasuser.revenue; where flightid ne 'IA11200'; run;
data someflights; set sasuser.revenue; where flightid > 'IA11200'; run;
data someflights; set sasuser.revenue; if flightid > 'IA11200'; run;
proc print data=sasuser.revenue; where origin='RDU' or flightid='IA03400'; run;
Rate this question:
Quiz Review Timeline (Updated): Mar 14, 2024 +
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.