Stat 440 Lab Exercises 3
Stat 440 Lab Exercises 3
2. Write a PROC PRINT step to view the data. Suppress the observation column.
SAS Partial Output
First
EmpID LastName Name JobCode Salary
1
Statistics 440: Lab Exercises 3
1. Create a permanent SAS data set named st.sanfran by writing a DATA step that uses
formatted input to create only the variables FlightID, RouteID, Destination,
Model, Date, and TotPassCap. Store the values of Date as SAS date values.
2. Use PROC PRINT to display the data portion of the data set. Display the values of Date in
the form 12/15/2000.
3. Use PROC CONTENTS to display the descriptor portion of the data set.
2
Statistics 440: Lab Exercises 3
5 Date Num 8
3 Destination Char 3
1 FlightID Char 7
4 Model Char 20
2 RouteID Char 7
6 TotPassCap Num 8
______________________________________________________________________________
Portions Copyright 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.
Reproduced with permission of SAS Institute Inc., Cary, NC, USA. SAS Institute Inc. makes no
warranties with respect to these materials and disclaims all liabilities thereof.