Exercise_Week3_Answe - MATH2871 DATA MANAGEMENT FOR STATISTICAL ANALYSIS SEMESTER 2 2010 Lab exercise Week3 1 Accessing a SAS Data library a Write

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

View Full Document Right Arrow Icon
MATH2871 DATA MANAGEMENT FOR STATISTICAL ANALYSIS SEMESTER 2, 2010 Lab exercise Week3 1. Accessing a SAS Data library. a. Write and submit the appropriate LIBNAME statement to provide access to the orion libref. libname orion ‘P:\math2871 ‘; NAME : the name of the library ‘P:\math2871 ‘ : the path to the library b. Check the log to confirm that the SAS data library was assigned. c. Open p104e01.sas and change the library name from work to orion . Then submit the program. d. Go to P:\Math2871\ and check that SAS dataset is saved as domations.sas 7bdat. e. Use the SAS Explorer window to view the contents of the orion library. f. Add a PROC CONTENTS step to list all the SAS data sets in the orion library. Do not display the descriptor portions of the individual data sets. proc contents data =orion._all_ nods ; run ; NOTE: Libref orion is successfully assigned as follows: data orion.donations; infile 'donation.dat' ; input Employee_ID Qtr1 Qtr2 Qtr3 Qtr4; Total=sum(Qtr1,Qtr2,Qtr3,Qtr4); run ; The SAS System The CONTENTS Procedure Member File # Name Type Size Last Modified 1 CUSTOMER_DIM DATA 33792 19 May 2010 12 : 51 : 14 2 DONATIONS DATA 9216 01 August 2010 16 : 46 : 10 3 PRODUCT_DIM DATA 115712 29 July 2010 17 : 04 : 16 4 SALES DATA 25600 19 May 2010 12 : 52 : 46
Background image of page 1

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

View Full DocumentRight Arrow Icon
g. Turned off and restart SAS. Go to SAS Explorer window and you will notice orion library is not there anymore. 2. Managing SAS data library
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/12/2011 for the course ASB 1001,2522, taught by Professor Nicole during the One '09 term at University of New South Wales.

Page1 / 5

Exercise_Week3_Answe - MATH2871 DATA MANAGEMENT FOR STATISTICAL ANALYSIS SEMESTER 2 2010 Lab exercise Week3 1 Accessing a SAS Data library a Write

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

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