• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

SAS Data Analytics questions with complete solutions

Document preview thumbnail
Preview 2 out of 9 pages

SAS Data Analytics questions with complete solutions

Content preview

SAS Data Analytics questions with
complete solutions

PROC PRINT - correct answer ✔✔ lists all columns and rows in the input table by default. The
OBS= data set option limits the number of rows listed. The VAR statement limits and orders the
columns listed.

PROC PRINT DATA=input-table(OBS=n); VAR col-name(s);RUN;



PROC MEANS - correct answer ✔✔ generates simple summary statistics for each numeric
column in the input data by default. The VAR statement limits the variables to analyze.

PROC MEANS DATA=input-table; VAR col-name(s);RUN;



PROC UNIVARIATE - correct answer ✔✔ also generates summary statistics for each numeric
column in the data by default, but includes more detailed statistics related to distribution and
extreme values. The VAR statement limits the variables to analyze.

PROC UNIVARIATE DATA=input-table; VAR col-name(s);RUN;



PROC FREQ - correct answer ✔✔ creates a frequency table for each variable in the input table
by default. You can limit the variables analyzed by using the TABLES statement.

PROC FREQ DATA=input-table; TABLES col-name(s) < / options>;RUN;



Filtering Rows - correct answer ✔✔ -The WHERE statement is used to filter rows. If the
expression is true, rows are read. If the expression is false, they are not.

-Character values are case sensitive and must be in quotation marks.

-Numeric values are not in quotation marks and must only include digits, decimal points, and
negative signs.

-Compound conditions can be created with AND or OR.

, -The logic of an operator can be reversed with the NOT keyword.

-When an expression includes a fixed date value, use the SAS date constant syntax:
"ddmmmyyyy"d, where dd represents a 1- or 2-digit day, mmm represents a 3-letter month in
any case, and yyyy represents a 2- or 4-digit year.



WHERE Operators - correct answer ✔✔ PROC procedure-name ... ;WHERE expression;RUN;

= or EQ,^= or ~= or NE,> or GT,< or LT,>= or GE,<= or LE



SAS Date Constant - correct answer ✔✔ "ddMONyyyy"



IN Operator - correct answer ✔✔ WHERE col-name IN(value-1<...,value-n>);WHERE col-name
NOT IN (value-1<...,value-n>);



Special WHERE Operators - correct answer ✔✔ WHERE col-name IS MISSING;

WHERE col-name IS NOT MISSING;

WHERE col-name IS NULL;

WHERE col-name BETWEEN value-1 AND value-2;WHERE col-name LIKE "value";

WHERE col-name =* "value";



Filtering Rows with Macro Variables - correct answer ✔✔ %LET macro-variable=value;



Example WHERE Statements with Macro Variables: - correct answer ✔✔ WHERE
numvar=&macrovar;

WHERE charvar="&macrovar";

WHERE datevar="&macrovar"d

-A macro variable stores a text string that can be substituted into a SAS program.

-The %LET statement defines the macro variable name and assigns a value.

Document information

Uploaded on
November 20, 2025
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$17.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
StuviaExamHub
3.7
(91)
Sold
497
Followers
356
Items
26308
Last sold
4 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions