SAS - Decision Making
Decision making structures require the programmer to specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false.
Following is the general form of a typical decision making structure found in most of the programming languages −
SAS provides following types of decision making statements. Click the following links to check their detail.
|Sr.No.||Statement Type & Description|
An if statement consists of a condition. If the condition is true then the specific data is fetched.
An if statement followed by else statement, which executes when the boolean condition is false.
An if statement followed by else statement, which is again followed by another pair of IF-THEN Statement.
An if statement consists of acondition, which when true deletes the specific data from the observations.