Type : SASHELP
Data comes from the standard SASHELP.CLASS table.
| 1 | DATA test1 ; |
| 2 | SET sashelp.class ; |
| 3 | * set entry price based on age ; |
| 4 | IF age>=13 THEN |
| 5 | price=12.50 ; |
| 6 | ELSE |
| 7 | price=8 ; |
| 8 | RUN ; |
| 1 | DATA test2 ; |
| 2 | SET sashelp.class ; |
| 3 | * set entry price based on age ; |
| 4 | price=ifn(age>=13,12.50,8) ; |
| 5 | RUN ; |