a8 - NOTE: DATA statement used (Total process time): real...

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

View Full Document Right Arrow Icon
EXAMPLE A8 SAS Program options ls=80 nodate pageno=1; data garden; input store : $13. count @; do i=1 to count; input item : $10. price : 5.2 @; output; end; drop i; datalines; JMart 4 rake 1250 sprinkler 875 bench 12000 chair 3525 Woodsons 3 edging 750 planter 1365 basket 870 Home'nGarden 5 sweeper 1185 gloves 350 shears 2100 spade 3450 trimmer 7640 ; run; proc print data=garden; title 'Gardening materials purchased Spring 2004 '; run;
Background image of page 1

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

View Full DocumentRight Arrow Icon
SAS Log 1 options ls=80 nodate pageno=1; 2 data garden; 3 input store : $13. count @; 4 do i=1 to count; 5 input item : $10. price : 5.2 @; 6 output; 7 end; 8 drop i; 9 datalines; NOTE: SAS went to a new line when INPUT statement reached past the end of a line. NOTE: The data set WORK.GARDEN has 12 observations and 4 variables.
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: NOTE: DATA statement used (Total process time): real time 0.08 seconds cpu time 0.01 seconds 14 ; 15 run; 16 proc print data=garden; 17 title 'Gardening materials purchased Spring 2004 '; 18 run; NOTE: There were 12 observations read from the data set WORK.GARDEN. NOTE: PROCEDURE PRINT used (Total process time): real time 0.09 seconds cpu time 0.01 seconds SAS Output Gardening materials purchased Spring 2004 1 Obs store count item price 1 JMart 4 rake 12.50 2 JMart 4 sprinkler 8.75 3 JMart 4 bench 120.00 4 JMart 4 chair 35.25 5 Woodsons 3 edging 7.50 6 Woodsons 3 planter 13.65 7 Woodsons 3 basket 8.70 8 Home'nGarden 5 sweeper 11.85 9 Home'nGarden 5 gloves 3.50 10 Home'nGarden 5 shears 21.00 11 Home'nGarden 5 spade 34.50 12 Home'nGarden 5 trimmer 76.40...
View Full Document

This note was uploaded on 02/18/2012 for the course STAT 479 taught by Professor Staff during the Winter '08 term at Iowa State.

Page1 / 3

a8 - NOTE: DATA statement used (Total process time): real...

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