May 26, 2021 SAS
The decision structure requires the programmer to specify one or more conditions to evaluate or test by the program, and one or more statements to execute if the condition is determined to be true, but not if the condition is false.
The following is a general form of the typical decision structure in most programming languages:
SAS provides the following types of decision statements. C lick the link below to check its details.
SN | The type and description of the claim |
---|---|
1. |
If statement.
An if statement consists of a condition. If the condition is true, specific data is extracted. |
2. |
IF-THEN-ELSE statement.
The if statement is followed by the else statement, which is executed when the Boolean condition is false. |
3. |
IF-THEN-ELSE-IF statement.
The if statement is followed by the else statement, followed by a pair of IF-THEN statements. |
4. |
IF-THEN-DELETE statement.
The if statement includes acondition when specific data is actually removed from the observation. |