SAS-Fundamental - An Introduction to SAS Programming...

Info iconThis preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon
An Introduction An Introduction to to SAS SAS Programming Programming Last Updated : 29 June, 2004 Center of Excellence Data Warehousing
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Agenda Working with SAS Environment SAS Programming Basics Editing and Debugging SAS Programs Setting up the SAS Session Creating Basic Reports and Statistics
Background image of page 2
Objectives Learn to Work with and manage your SAS windows Create SAS libraries Explore and manage SAS files Enter and submit SAS programs Create and use file shortcuts.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Explore Window User to Create new libraries and SAS files Open any SAS file Consolidation of disparate information sources Perform most file management tasks such as moving, copying, and deleting files Faster time-to- market for products and services Create shortcuts to non-SAS files.
Background image of page 4
Features of Program Editor Drag and drop SAS Programs on this window Specify the number of lines to submit at a time Recall submitted statements Save contents automatically Clear contents Turn line numbers on and off Use the command line or menus save your program.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Other Windows’ Features Log view messages about your SAS session and any SAS programs you submit Output browse output from SAS programs Result navigate and manage output from SAS programs view, save, and print individual items of output
Background image of page 6
Working in SAS Objectives The structure and components of SAS programs The steps involved in processing SAS programs The structure and components of SAS data sets The two types of SAS data sets SAS libraries and the types of SAS files that they contain Temporary and permanent SAS libraries.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Layout of SAS Programs SAS Programs used to access, analyze, manage and present data SAS Statements Case insensitive Free Format Ends with a semicolon Styles for Comment - *statement; or /* …*/
Background image of page 8
Parts of SAS Programs Data Step TO CREATE DATA SETS put your data into a SAS data set compute the values for new variables check for and correct errors in your data produce new SAS data sets by subsetting, merging, and updating existing data sets. Proc Step PROCESS DATA SETS print a report produce descriptive statistics create a tabular report produce plots and charts.
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
SAS NAMES (VARIABLES & FILE NAMES) NAMES 1 TO 32 CHARACTERS IN LENGTH START WITH LETTER (A THRU Z) AND _ CAN BE A COMBINATION OF NUMBERS/LETTERS VARIABLES CHARACTER NUMERIC FILENAMES 2 LEVEL LIB - WORK/PERMANENT
Background image of page 10
Editing SAS Programs the Program Editor window the Enhanced Editor the SAS Notepad window the host editor of your choice
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Processing SAS Programs When you submit a SAS program, SAS software reads the statements and checks them for errors. When it encounters a DATA, PROC, or RUN
Background image of page 12
Image of page 13
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/08/2010 for the course USE 3425 taught by Professor Raman during the Spring '10 term at Punjab Engineering College.

Page1 / 52

SAS-Fundamental - An Introduction to SAS Programming...

This preview shows document pages 1 - 13. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online