GENERAL CONCEPTS OF BASE SAS PROGRAMMING.pptx

SyedNamathullah 31 views 12 slides Jul 22, 2024
Slide 1
Slide 1 of 12
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12

About This Presentation

General description of base sas


Slide Content

INTRODUCTION BASE SAS

SAS Platforms

SAS STUDIO

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.

THANKS