Statistical Analysis System (SAS) Programming Certification Practice Exam

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

Prepare for the SAS Programming Certification Exam with our comprehensive quiz. Study with multiple-choice questions, detailed explanations, and helpful hints to boost your confidence. Ace your certification test!

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.


What is the appropriate SAS informat for reading the date expression 10222001?

  1. DATE6.

  2. DATE8.

  3. MMDDYY6.

  4. MMDDYY8.

The correct answer is: MMDDYY8.

The choice of informat for reading the date expression 10222001 is based on the structure and format of the date itself. The date provided, 10222001, is in the format of MMDDYYYY, which represents the month, day, and year in a concatenated manner. The MMDDYY8. informat is specifically designed to interpret a date that is represented as a two-digit month, two-digit day, and four-digit year, which corresponds exactly to the given date expression. The '8' in MMDDYY8. indicates that the informat recognizes a total of eight digits, appropriately accommodating the entire structure of the input date. Other informats listed, such as DATE6. and DATE8., are not suitable because they are intended for different formats. DATE6. reads dates in the format DDMMMYY or YYMMDD, which doesn’t match the structure of 10222001. Similarly, DATE8. is meant for date formats that include separators and does not align with a contiguous numeric format. MMDDYY6. could incorrectly suggest a 6-digit format, which cannot accommodate the 8-digit date string provided. Hence, MMDDYY8. is the correct choice for accurately parsing the input date