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

Info icon This 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
Image of page 1

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

View Full Document Right 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
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.
Image of page 3

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

View Full Document Right 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.
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.
Image of page 5

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

View Full Document Right 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
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.
Image of page 7

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

View Full Document Right 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 /* …*/
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.
Image of page 9

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

View Full Document Right 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
Image of page 10
Editing SAS Programs the Program Editor window the Enhanced Editor the SAS Notepad window the host editor of your choice
Image of page 11

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

View Full Document Right Arrow Icon
Processing SAS Programs When you submit a SAS program, SAS software reads the statements and checks them for errors.
Image of page 12
Image of page 13
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern