SAS Institute SAS Certified Associate: Programming Fundamentals Using SAS 9.4 A00-215 Question # 21 Topic 3 Discussion

SAS Institute SAS Certified Associate: Programming Fundamentals Using SAS 9.4 A00-215 Question # 21 Topic 3 Discussion

A00-215 Exam Topic 3 Question 21 Discussion:
Question #: 21
Topic #: 3

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;


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) ;


Get Premium A00-215 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.