a2 - cpu time 0.00 seconds 21 ; 22 run; 23 data second; 24...

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

View Full Document Right Arrow Icon
EXAMPLE A2 SAS Program options ls= 80 nodate pageno= 1 ; data first ; input (income tax age state)(@ 4 2 * 5.2 2. $2. ); datalines ; 123546750346535IA 234765480895645IA 348578650595431IA 345786780576541NB 543567511268532IA 231785870678528NB 356985650756543NB 765745630789525IA 865345670256823NB 786567340897534NB 895651120504545IA 785650750654529NB 458595650456834IA 345678560912728NB 346685960675138IA 546825750562527IA ; run ; data second; set first; if age< 35 'IA' ; run ; proc print ; title 'Selected observations from the Tax data set' ; 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 first ; 3 input (income tax age state)(@4 2*5.2 2. $2.); 4 datalines; NOTE: The data set WORK.FIRST has 16 observations and 4 variables. NOTE: DATA statement used (Total process time): real time 0.13 seconds
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: cpu time 0.00 seconds 21 ; 22 run; 23 data second; 24 set first; 25 if age&lt;35 &amp; state='IA'; 26 run; NOTE: There were 16 observations read from the data set WORK.FIRST. NOTE: The data set WORK.SECOND has 5 observations and 4 variables. NOTE: DATA statement used (Total process time): real time 0.07 seconds cpu time 0.01 seconds 27 proc print; 28 title 'Selected observations from the Tax data set'; 29 run; NOTE: There were 5 observations read from the data set WORK.SECOND. NOTE: PROCEDURE PRINT used (Total process time): real time 0.08 seconds cpu time 0.00 seconds SAS Output Selected observations from the Tax data set 1 Obs income tax age state 1 578.65 59.54 31 IA 2 567.51 126.85 32 IA 3 745.63 78.95 25 IA 4 595.65 45.68 34 IA 5 825.75 56.25 27 IA...
View Full Document

Page1 / 3

a2 - cpu time 0.00 seconds 21 ; 22 run; 23 data second; 24...

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