Get the auto.dta file

/* this next step is a kludge */
/* options SSLCALISTLOC="/usr/lib64/R/library/RCurl/CurlSSL/cacert.pem";
proc http method="get" out=auto url="http://www.stata-press.com/data/r9/auto.dta";
run;*/
x wget -O auto.dta "http://www.stata-press.com/data/r9/auto.dta" 2>/dev/null 1>&2;

Create the codebook

filename auto "auto.dta";
proc import datafile=auto out=auto dbms=dta;
run;
proc contents;
proc means;
run;
Data Set Name WORK.AUTO Observations 74
Member Type DATA Variables 12
Engine V9 Indexes 0
Created 10/05/2018 10:28:11 Observation Length 112
Last Modified 10/05/2018 10:28:11 Deleted Observations 0
Protection Compressed NO
Data Set Type Sorted NO
Label
Data Representation SOLARIS_X86_64, LINUX_X86_64, ALPHA_TRU64, LINUX_IA64
Encoding latin1 Western (ISO)

Engine/Host Dependent Information
Data Set Page Size 65536
Number of Data Set Pages 1
First Data Page 1
Max Obs per Page 584
Obs in First Data Page 74
Number of Data Set Repairs 0
Filename /tmp/SAS_workDAA600001F1E_zotique2/auto.sas7bdat
Release Created 9.0401M0
Host Created Linux
Inode Number 1963626
Access Permission rw-r–r–
Owner Name vilhuber
File Size (bytes) 131072

Alphabetic List of Variables and Attributes
# Variable Type Len Format Informat Label
10 displacement Num 8 Displacement (cu. in.)
12 foreign Num 8 FOREIGN. Car type
11 gear_ratio Num 8 6.2 Gear Ratio
5 headroom Num 8 6.1 Headroom (in.)
8 length Num 8 Length (in.)
1 make Char 18 $18. $18. Make and Model
3 mpg Num 8 Mileage (mpg)
2 price Num 8 Price
4 rep78 Num 8 Repair Record 1978
6 trunk Num 8 Trunk space (cu. ft.)
9 turn Num 8 Turn Circle (ft.)
7 weight Num 8 Weight (lbs.)



Variable Label N Mean Std Dev Minimum Maximum
price
mpg
rep78
headroom
trunk
weight
length
turn
displacement
gear_ratio
foreign
Price
Mileage (mpg)
Repair Record 1978
Headroom (in.)
Trunk space (cu. ft.)
Weight (lbs.)
Length (in.)
Turn Circle (ft.)
Displacement (cu. in.)
Gear Ratio
Car type
74
74
69
74
74
74
74
74
74
74
74
6165.26
21.2972973
3.4057971
2.9932432
13.7567568
3019.46
187.9324324
39.6486486
197.2972973
3.0148649
0.2972973
2949.50
5.7855032
0.9899323
0.8459948
4.2774042
777.1935671
22.2663399
4.3993537
91.8372190
0.4562871
0.4601885
3291.00
12.0000000
1.0000000
1.5000000
5.0000000
1760.00
142.0000000
31.0000000
79.0000000
2.1900001
0
15906.00
41.0000000
5.0000000
5.0000000
23.0000000
4840.00
233.0000000
51.0000000
425.0000000
3.8900001
1.0000000

References