Basically There 4 windows Explorer Window Code Window Log Window Result or OUTPUTDATA window. Explorer Window(Navigation Pane): For Searching Files, Folders and Libraries. Code Window(Editor Window):Writing the program code. Log Window: For checking the Execution Status of program. Result Window: Display the results. OutputData Window: Display the New dataset created .
SAS TABLE
Basically Table Divided into two parts: 1. Descriptor portion or Metadata. 2. Data Values. Vertical Columns- Variables. Horizontal Rows- Observations or Records . Variable name can have 1-32 characters. Should start with letter or underscore. Can be in lowercase or uppercase. Variables are of two types: Numeric: Numbers from 0 to 9,minus sign, decimal point, and scientific notation E. Character : Alphabets, numbers, Special Characters.
WORKING OF SAS SAS Program Run in Two Phases: Compilation Phase Execution Phase In Compilation Phase declarative statements are processed and syntax errors are identified . In compilation phase Data attributes and rules of execution are established. execution phase processes each statement sequentially and generates the output. Execution phase Read, Manipulate and Write the data
SAS PROGRAM
A SAS program can contain any combination of DATA steps and PROC steps . DATA and PROC steps get their name from the key word - DATA or Proc. Each step consists of series of statements . Each statement ends with semicolon . Most steps end with a run statement , and a few PROC steps and with a quit statement. DATA steps, usually retrieve and manipulate data, and PROC steps, analyze the data.
A DATA step might also filter rows, compute new columns, join tables, and perform other data manipulations. A PROC or procedure step processes a SAS table in a specific predefined way. SAS have Dozens of procedures that Generates Reports and Graphs, Manage Data and Performs complex statistical Analysis. Example: Proc print -Displays the data Proc Means - Perform Statistics Proc Report -Generates Reports Proc Chart, Proc Gchart , Proc Plot, Proc SGPLOT - Generate Graphs
Global Statements Global statements can be outside DATA and PROC steps, and they typically defined some option setting for the SAS session.