295
dm log 'clear'; dm out 'clear';
296
options nodate;
297
title1 'Jennifer J. Clair'; title2 'Graded Assignment 1'; title3
"&SysDate";
298
Data GettingStarted;
299
infile 'F:\PubH 6249\Births_2003\Births_2003.txt' missover;
300
input weeks 6-7 weight 8-11 age
12-14
301
StateBirth $ 1-2
302
StateMom $ 3-4
303
Gender $ 5
304
DayWeek $ 15
305
BirthMonth $ 16-17
306
MatAge $ 18
307
MatRace $ 19
308
DelivMethod $ 20
309
Attend $ 21
310
CoD $ 22-25;
311
label StateBirth="State of
Birth"
312
StateMom="State of Mom's Residence"
313
Gender="Infant Gender"
314
DayWeek="Weekday of Birth"
315
BirthMonth="Month of Birth"
316
MatAge="Maternal Age"
317
MatRace="Maternal Race"
318
DelivMethod="Delivery Method"
319
Attend="Attendant at Birth"
320
CoD="Cause of Death";
321
run;
NOTE: The infile 'F:\PubH
6249\Births_2003\Births_2003.txt' is:
Filename=F:\PubH 6249\Births_2003\Births_2003.txt,
RECFM=V,LRECL=256,File Size (bytes)=37592019,
Last Modified=27Jan2013:22:14:14,
Create Time=27Jan2013:22:14:14
NOTE: 1392297 records were read from
the infile 'F:\PubH 6249\Births_2003\Births_2003.txt'.
The minimum record length was 25.
The maximum record length was 25.
NOTE: The data set WORK.GETTINGSTARTED
has 1392297 observations and 13 variables.
NOTE: DATA statement used (Total
process time):
real time 1.20 seconds
cpu time 1.13 seconds
322
Proc format;
322! /* create user defined formatting
variables*/
323
value $StateBirth 'ca'='California'
324
'fl'='Florida'
325
'ny'='New York'
326
'tx'='Texas';
NOTE: Format $STATEBIRTH is already on
the library.
NOTE: Format $STATEBIRTH has been
output.
327
value $Gender 'm'='male'
328
'f'='female';
NOTE: Format $GENDER is already on the
library.
NOTE: Format $GENDER has been output.
329
value $DayWeek
330
'1'='Sunday'
331 '2'='Monday'
332 '3'='Tuesday'
333 '4'='Wednesday'
334 '5'='Thursday'
335 '6'='Friday'
336 '7'='Saturday';
NOTE: Format $DAYWEEK is already on
the library.
NOTE: Format $DAYWEEK has been output.
337
value $BirthMonth '01'='January'
338
'02'='February'
339
'03'='March'
340
'04'='April'
341
'05'='May'
342
'06'='June'
343
'07'='July'
344
'08'='August' '09'='September'
345
'10'='October'
346
'11'='November'
347
'12'='December';
NOTE: Format $BIRTHMONTH is already on
the library.
NOTE: Format $BIRTHMONTH has been
output.
348
value $Attend '1'='MD'
349
'2'='DO'
350
'3'='CNM'
351
'4'='Other Midwife'
352
'5'='Other'
353
'9'='Not known or stated';
NOTE: Format $ATTEND is already on the
library.
NOTE: Format $ATTEND has been output.
354
run;
NOTE: PROCEDURE FORMAT used (Total
process time):
real time 0.00 seconds
cpu time 0.00 seconds
355
Proc freq data=GettingStarted; /* Frequency Counts */
356
tables StateBirth Gender DayWeek BirthMonth Attend;
357
format StateBirth $StateBirth.
358
Gender $Gender.
359
DayWeek $DayWeek.
360
BirthMonth $BirthMonth.
361
Attend $Attend.;
362
run;
NOTE: There were 1392297 observations
read from the data set WORK.GETTINGSTARTED.
NOTE: PROCEDURE FREQ used (Total
process time):
real time 0.51 seconds
cpu time 0.51 seconds
No comments:
Post a Comment