Assignment1

Assignment1 - Assignment #1 (Due: January 31, 2011) 1. You...

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

View Full Document Right Arrow Icon
Assignment #1 (Due: January 31, 2011) 1. You are given a text file called stockprices.txt containing information on the purchase and sale of stocks. The data layout is as follows: Variable Description Starting Column length Data Type Stock Stock symbol 1 4 Char PurDate Purchase date 5 10 Mm/dd/yyyy PurPrice Purchase price 15 6 Dollar signs and commas Number Number of shares 21 4 Num SellDate Selling date 25 10 Mm/dd/yyyy SellPrice Selling price 35 6 Dollar signs and commas Here is a listing of this file: stockprice.txt IBM 5/21/2006 $80.0 10007/20/2006 $88.5 CSCO04/05/2005 $17.5 20009/21/2005 $23.6 MOT 03/01/2004 $14.7 50010/10/2006 $19.9 XMSR04/15/2006 $28.4 20004/15/2006 $12.7 BBY 02/15/2005 $45.2 10009/09/2006 $56.8 a. Create a SAS data set by reading the data from this file. Use formatted input. b. Print out the 2 nd , 3 rd , and 4 th observations of this data set using the format used in part a. c.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Assignment1 - Assignment #1 (Due: January 31, 2011) 1. You...

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

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