Statistical Analysis System (SAS) Programming Certification Practice Exam

Disable ads (and more) with a membership for a one time $2.99 payment

Study for the SAS Programming Certification Exam. Master multiple choice questions, check explanations, and gear up for success. Boost your knowledge and confidence with engaging content!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


In the context of SAS datetime informats, which date and time expression cannot be read correctly?

  1. 30May2018:10:03:17.2 DATETIME20.

  2. 30May18 10:03:17.2 DATETIME18.

  3. 30May2018/10:03 DATETIME15

  4. 30May2018/1003 DATETIME14

The correct answer is: 30May2018/1003 DATETIME14

In SAS, datetime informats are designed to interpret specific formats for date and time data. The correct answer indicates that the expression "30May2018/1003" cannot be read correctly due to the expected structure matching of the input to the specified informat. Datetime formats generally require a clear separation between date and time components, along with an understanding of how each portion is represented. The informat DATETIME14 expects the date in a specific format followed closely by a time element that usually includes colons between hour, minute, and second segments, such as HH:MM:SS. The expression "30May2018/1003" does not conform to these expectations, as it lacks the necessary colon separation in the time component. Instead, it combines the time as "1003," which could be misinterpreted, failing to provide clarity on hours and minutes since no delimiters are present. In contrast, the other date and time expressions in the choices utilize formats that conform more comfortably to what SAS datetime informats expect. For example, "30May2018:10:03:17.2" and "30May18 10:03:17.2" are formatted correctly and have the necessary delimiters, allowing SAS to interpret