STAT 430 Lecture 3: Program Structure
Document Summary
The sas programming involves first creating/reading the data sets into the memory and then doing the analysis on this data. We need to understand the flow in which a program is written to achieve this. The below diagram shows the steps to be written in the given sequence to create a sas. Every sas program must have all these steps to complete reading the input data, analysing the data and giving the output of the analysis. Also the run statement at the end of each step is required to complete the execution of that step. This step involves loading the required data set into sas memory and identifying the variables (also called columns) of the data set. It also captures the records (also called observations or subjects). The syntax for data statement is as below. The below example shows a simple case of naming the data set, defining the variables, creating new variables and entering the data.