b4 - Example B4 SAS PROGRAM proc format; invalue $st...

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

View Full Document Right Arrow Icon
Example B4 SAS PROGRAM proc format ; invalue $st 'IA' = 'Iowa' 'NB' = 'Nebraska' ; run ; data first ; length state $ 12 ; infile 'C:\Documents and Settings\. ..\wages.txt' ; input (income tax age state)(@ 4 2 * 5.2 2. $st2. ); run ; proc print noobs ; format income tax dollar8.2 state $12. ; var income tax age state; title 'SAS Listing of Tax data' ; 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 16 17 proc format; 18 invalue $st 'IA'='Iowa' 19 'NB'='Nebraska'; NOTE: Informat $ST has been output. 20 run; NOTE: PROCEDURE FORMAT used (Total process time): real time 0.01 seconds cpu time 0.01 seconds 21 data first ; 22 length state $ 12; 23 infile 'C:\Documents and Settings\mervyn\My Documents\Classwork\stat479\b_stuff\wages.txt'; 24 input (income tax age state)(@4 2*5.2 2. $st2.); 25 run; NOTE: The infile 'C:\Documents and Settings\mervyn\My Documents\Classwork\stat479\b_stuff\wages.txt' is: File Name=C:\Documents and Settings\mervyn\My Documents\Classwork\stat479\b_stuff\wages.txt, RECFM=V,LRECL=256 NOTE: 16 records were read from the infile 'C:\Documents and Settings\mervyn\My
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

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

Page1 / 4

b4 - Example B4 SAS PROGRAM proc format; invalue $st...

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