The following steps display information about the data set Sashelp.Mileages
and create Figure B.8:
title 'Flying Mileages between Five US Cities Data'; proc contents data=sashelp.mileages varnum; ods select position; run; title 'The Full Data Set'; proc print data=sashelp.mileages label; id city; run;
Figure A.8: Flying Mileages between Five U.S. Cities Data
Flying Mileages between Five US Cities Data |
Variables in Creation Order | |||
---|---|---|---|
# | Variable | Type | Len |
1 | Atlanta | Num | 8 |
2 | Chicago | Num | 8 |
3 | Denver | Num | 8 |
4 | Houston | Num | 8 |
5 | LosAngeles | Num | 8 |
6 | Miami | Num | 8 |
7 | NewYork | Num | 8 |
8 | SanFrancisco | Num | 8 |
9 | Seattle | Num | 8 |
10 | WashingtonDC | Num | 8 |
11 | City | Char | 15 |
The Full Data Set |
City | Atlanta | Chicago | Denver | Houston | LosAngeles | Miami | NewYork | SanFrancisco | Seattle | WashingtonDC |
---|---|---|---|---|---|---|---|---|---|---|
Atlanta | 0 | . | . | . | . | . | . | . | . | . |
Chicago | 587 | 0 | . | . | . | . | . | . | . | . |
Denver | 1212 | 920 | 0 | . | . | . | . | . | . | . |
Houston | 701 | 940 | 879 | 0 | . | . | . | . | . | . |
Los Angeles | 1936 | 1745 | 831 | 1374 | 0 | . | . | . | . | . |
Miami | 604 | 1188 | 1726 | 968 | 2339 | 0 | . | . | . | . |
New York | 748 | 713 | 1631 | 1420 | 2451 | 1092 | 0 | . | . | . |
San Francisco | 2139 | 1858 | 949 | 1645 | 347 | 2594 | 2571 | 0 | . | . |
Seattle | 2182 | 1737 | 1021 | 1891 | 959 | 2734 | 2408 | 678 | 0 | . |
Washington D.C. | 543 | 597 | 1494 | 1220 | 2300 | 923 | 205 | 2442 | 2329 | 0 |