Reading Hierarchical Files |
Creating One Observation per Header Record |
Simple DO Groups
You can use a simple DO group with an IF-THEN statement to execute multiple SAS statements based on the value of a variable. |
General form, simple DO Group:
DO; where
|
Typically, simple DO groups are used with IF-THEN statements to execute
multiple statements depending on whether a condition is true or false.
For example, the expression if type='X' then do; input @3 Amount comma6.; Total+amount; end;
When the condition |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.