base sas 2 sas windowing environment

16
Smita Agarwall Base SAS SAS Windowing Environment

Upload: singhvikram549

Post on 18-Dec-2014

287 views

Category:

Technology


4 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Base sas 2  sas windowing environment

Smita Agarwall

Base SAS SAS Windowing Environment

Page 2: Base sas 2  sas windowing environment

SAS Windowing EnvironmentStarting SAS from Windows Start MenuSAS Windows Programming EnvironmentUsing SAS Windows Programming

EnvironmentUsing SAS Windows Programming

Environment to create and use Datasets

Page 3: Base sas 2  sas windowing environment

Starting SAS from Windows Start Menu1. Click on Start2. Select Programs3. Select SAS 4. Select “The SAS System for Windows

9.0(English)”

Page 4: Base sas 2  sas windowing environment
Page 5: Base sas 2  sas windowing environment
Page 6: Base sas 2  sas windowing environment

SAS Windows EnvironmentThe main window is divided into two parts Right Tabbed Window: The right tabbed

window displaysLog Window Program Editor windowOutput windowResults windowExplorer window

Left Tabbed Window: The left tabbed window displaysResults WindowExplorer

Page 7: Base sas 2  sas windowing environment

SAS WindowsProgram Editor Window: Similar to any text

editor file. It has following tasksEnter and edit textSubmit a Program statements to SAS for executionSave and open program files

Enhanced Window Editor : Similar to Program Editor but with some enhanced features like Color Coding for Program elementsSAS Procedures , DATA steps and Macros can be

expaned and Collapsed

Page 8: Base sas 2  sas windowing environment

SAS Windows contd.Log Window : It contains Log of activities

performed when a program is submitted to SAS for Execution. It contain program segments of program submitted for running , displaying notes and error in syntax.

Output Window : It displays the output of the program to print the data , display the result of the program.

Explorer Window: It allows navigation through the list of objects used in SAS environment. The top most list contains the contents of SAS Environment “Libraries”. “Files Shortcuts”, “Favorite Folders”, “My Computer”.The Libraries contain the list of active Libraries.. Default are ‘sashelp’, Sasuser’, and ‘Work’.

Page 9: Base sas 2  sas windowing environment

SAS Windows contd.Result Window : Its like a Table of contents

of a SAS Program. It can used to print and save the data .

Page 10: Base sas 2  sas windowing environment

Main Menu Bar Command Bar Application Bar

Left Tabs Right Tabs

Page 11: Base sas 2  sas windowing environment

Windows in SAS Programming EnvironmentThe SAS Window has

Main Menu : It contains menu items for various operations to be performed like opening a file , saving a file , executing a file

SAS Command Bar : This bar contains editable list box and a button. A tick button on the left is used to submit the command.

Application Bar: This bar contain different button which allows performing jobs related to the application like creating a new SAS program.. Opening SAS program.

Context Menu: Each bar can be displayed or hidden by context menu which is displayed by right clicking on command bar or application bar.

Page 12: Base sas 2  sas windowing environment

SAS Windows Programming EnvironmentThe basic operations in the Base SAS

Programming environment involves :Writing a ProgramSubmitting a program for ExecutionExamining the results Note : The explorer window is necessary to

run a SA system. If you close this window , the SAS system will close.

Page 13: Base sas 2  sas windowing environment

Using SAS Windows Programming EnvironmentWrite a New SAS Program (Program 1 and

Program 2)Running a SAS Program

Page 14: Base sas 2  sas windowing environment

Program 1 Title "Weights";

data weights;

Input id weights;

datalines;

012 350

234 175

345 270

456 280

567 240

789 195

890 190

901 200

;

run;

proc print data = weights;

run;

Page 15: Base sas 2  sas windowing environment

Program 2 DATA distance datalines;Miles =26.22;Kilometers = 1.61 *Miles;run;PROC PRINT DATA = distance;run ;

Page 16: Base sas 2  sas windowing environment

Using SAS Windows Programming Environment to create and use Datasets Create a SAS LibraryOpening an existing SAS LibraryDisabling a SAS LibraryCreating a New DatasetSetting AttributesSaving a table and Giving it a nameDeleting A SAS DatasetRenaming a SAS dataset.