STAT 430 Lecture Notes - Lecture 4: Text Editor, Semicolon, Sas Language
Document Summary
Like any other programming language, the sas language has its own rules of syntax to create the sas programs. The three components of any sas program - statements, Variables and data sets follow the below rules on syntax. Statements can start anywhere and end anywhere. A semicolon at the end of the last line marks the end of the statement. Many sas statements can be on the same line, with each statement ending with a semicolon. Space can be used to separate the components in a sas program statement. Every sas program must end with a run statement. Variables in sas represent a column in the sas data set. It must start with the letters a through z (not case sensitive) or an underscore (_). Can include numbers but not as the first character. The data statement marks the creation of a new sas data set. The rules for data set creation are as below.