Type : CREATION_INTERNE
The script does not manipulate any SAS data tables (dataset). It acts only on the in-memory macro symbol table.
| 1 | %LET myName = FirstName LastName; |
| 2 | %PUT Hello World! My name is &myName; |
| 3 |
| 1 | /* a few more examples of variables */ |
| 2 | %Let age = 70; |
| 3 | %Let twograde = 77 + 92; |
| 4 | %Put &twograde |
| 1 | %Let totgrade = %eval(77+92) |
| 2 | %Put &totgrade |
| 1 | %Let totprice = %sysevalf(77.5+92.1) |
| 2 | %Put &totprice |
| 1 | %Let state=; |
| 2 | %Put &state; |