If-then Statement


The if-then statement is used to conditionally execute SAS statements within a data step.

It is a major topic for the SAS base certification exam.

In this module, you will learn:

  • The basics of if-then statement.
  • How to handle character values and data truncation.
  • The DO-END statements.
  • The SELECT-WHEN statements.

​There are 11 relevant sample exam questions for this particular topic.