{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

b4 - Example B4 SAS PROGRAM proc format invalue...

Info iconThis preview shows pages 1–4. 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 Document Right 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 Documents\Cl
Background image of page 2
Background image of page 3

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

View Full Document Right Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}