Pass the SAS Institute Programming Fundamentals A00-215 Questions and answers with CertsForce

Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions
Questions # 21:

Which assignment statement uses the SUBSTR function to extract the four-digit year from the value of date?

data days;

date="02Apr2019";

insert-statement-here

run;

Options:

A.

year=substr (date, 7, 4) ;


B.

year=substr (date, 4, 6) ;


C.

year=substr (date, 6, 4) ;

O D) year=substr (date, 4, 7) ;


Expert Solution
Questions # 22:

Given the data set NAMES:

Question # 22

Which PROC SORT program creates the NAMES data set shown below?

Question # 22

Options:

A.

proc sort data=Names;

by Name;

run;


B.

proc sort data=Names;

orderby Name;

run;


C.

proc sort data=Names;

by Age;

run;


D.

proc sort data=Names;

orderby Age;

run;


Expert Solution
Questions # 23:

Which PROC SORT statement specifies the sort variable?

Options:

A.

CLASS


B.

BY


C.

SORTVAR


D.

ORDERBY


Expert Solution
Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions