This preview shows page 1. Sign up to view the full content.
Unformatted text preview: AMGN 67.66 100 DELL 24.60 200 GE 34.50 100 HPQ 32.32 120 IBM 82.25 50 MOT 30.24 100 a. Using this raw data file, create a temporary SAS data set ( Portfolio ). Choose your own variable names for the stock symbol, price, and number of shares. In addition, create a new variable (call it Value) equal to the stock price times the number of shares. Include a comment in your program describing the purpose of the program, your name, and the date the program was written. b. Write the appropriate PROC PRINT statements to list the contents of this data set. c. Delete the variables of price and number of shares. d. Use PROC PRINT statements to list the first 3 observations of this data set. 3. You are given an excel file called political.xls containing state, political party and age. a. Write a SAS program to create a temporary SAS data set called Vote. Use the variable names State, Party, and Age. b. Include a procedure to list the last two observations in this data set....
View Full Document
- Spring '11