base sas 2 sas windowing environment
DESCRIPTION
TRANSCRIPT
Smita Agarwall
Base SAS 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
Starting SAS from Windows Start Menu1. Click on Start2. Select Programs3. Select SAS 4. Select “The SAS System for Windows
9.0(English)”
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
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
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’.
SAS Windows contd.Result Window : Its like a Table of contents
of a SAS Program. It can used to print and save the data .
Main Menu Bar Command Bar Application Bar
Left Tabs Right Tabs
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.
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.
Using SAS Windows Programming EnvironmentWrite a New SAS Program (Program 1 and
Program 2)Running a SAS Program
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;
Program 2 DATA distance datalines;Miles =26.22;Kilometers = 1.61 *Miles;run;PROC PRINT DATA = distance;run ;
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.