Skip to Main Content
Statistical Programming in SAS
book

Statistical Programming in SAS

by John Bailer
April 2015
Intermediate to advanced content levelIntermediate to advanced
460 pages
14h 45m
English
SAS Institute
Content preview from Statistical Programming in SAS
Chapter 8: Formatting Variables, Recoding Variables, and Writing Programs 277
Display 8.16 Reading date, time, and currency data into SAS
data test;
input @1 date MMDDYY10. @21 time TIME8. @31 money DOLLAR10.2;
datalines;
01/01/1960 01:00:00 $100.22
09/29/2003 09:49:59 $12693.79
;
run;
ODS RTF file="C:\Users\baileraj.IT\Desktop\Display-8-16.rtf";
proc print data=test;
title "print of date and time w/o formatting internal SAS representation";
var date time money;
run;
proc print data=test;
title "print of date and time w/ formatting";
var date time;
format date MMDDYY10. time TIME8. money DOLLAR10.2;
run;
ODS RTF CLOSE;
A comparison ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Elementary Statistics Using SAS

Elementary Statistics Using SAS

Sandra D. Schlotzhauer

Publisher Resources

ISBN: 9781607645047