SAS Statements

SAS programs are made up of steps, and steps are made up of statements. Remember, you are learning a new language, and when you create a SAS program, as with any programming language, there are rules to follow. Your SAS program is constructed of DATA and PROC steps. DATA steps are typically used to create SAS data sets. PROC steps (PROCedures) are used to process SAS data sets (or, in other words, to generate reports and sort data). The most important rule is:
Every SAS statement ends with a semicolon.
Although this might seem simple, even the most experienced programmer will forget a semicolon! In the following programming example, PROC PRINT is used to display the data in a table format on the RESULTS tab. The data equals ...

Get A Recipe for Success Using SAS University Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.