Additional Data Sets |
DATA Step to Create the Data Set USCLIM.HIGHTEMP |
libname usclim 'SAS-data-library'; data usclim.hightemp; input State $char14. City $char14. Temp_f Date $ Elevation; datalines; Arizona Parker 127 07jul05 345 Kansas Alton 121 25jul36 1651 Nevada Overton 122 23jun54 1240 North Dakota Steele 121 06jul36 1857 Oklahoma Tishomingo 120 26jul43 6709 Texas Seymour 120 12aug36 1291 ;
DATA Step to Create the Data Set USCLIM.HURRICANE |
libname usclim 'SAS-data-library'; data usclim.hurricane; input @1 State $char11. @13 Date date7. Deaths Millions Name $; format Date worddate18. Millions dollar6.; informat State $char11. Date date9.; label Millions='Damage'; datalines; Mississippi 14aug69 256 1420 Camille Florida 14jun72 117 2100 Agnes Alabama 29aug79 5 2300 Frederick Texas 15aug83 21 2000 Alicia Texas 03aug80 28 300 Allen ;
DATA Step to Create the Data Set USCLIM.LOWTEMP |
libname usclim 'SAS-data-library'; data usclim.lowtemp; input State $char14. City $char14. Temp_f Date $ Elevation; datalines; Alaska Prospect Creek -80 23jan71 1100 Colorado Maybell -60 01jan79 5920 Idaho Island Prk Dam -60 18jan43 6285 Minnesota Pokegama Dam -59 16feb03 1280 North Dakota Parshall -60 15feb36 1929 South Dakota McIntosh -58 17feb36 2277 Wyoming Moran -63 09feb33 6770 ;
DATA Step to Create the Data Set USCLIM.TEMPCHNG |
libname usclim 'SAS-data-library'; data usclim.tempchng; input @1 State $char13. @15 Date date7. Start_f End_f Minutes; Diff=End_f-Start_f; informat State $char13. Date date7.; format Date date9.; datalines; North Dakota 21feb18 -33 50 720 South Dakota 22jan43 -4 45 2 South Dakota 12jan11 49 -13 120 South Dakota 22jan43 54 -4 27 South Dakota 10jan11 55 8 15 ;
Note on Catalogs USCLIM.BASETEMP and USCLIM.REPORT |
The catalogs USCLIM.BASETEMP and USCLIM.REPORT are used to show how the DATASETS procedure processes both SAS data sets and catalogs. The contents of these catalogs are not important in the context of this book. In most cases, you would use SAS/AF, SAS/FSP, or other SAS products to create catalog entries. You can test the examples in this section without having these catalogs.
DATA Step to Create the Data Set CLIMATE.HIGHTEMP |
libname climate 'SAS-data-library'; data climate.hightemp; input Place $ 1-13 Date $ Degree_f Degree_c; datalines; Libya 13sep22 136 58 California 10jul13 134 57 Israel 21jun42 129 54 Argentina 11dec05 120 49 Saskatchewan 05jul37 113 45 ;
DATA Step to Create the Data Set CLIMATE.LOWTEMP |
libname climate 'SAS-data-library'; data climate.lowtemp; input Place $ 1-13 Date $ Degree_f Degree_c; datalines; Antarctica 21jul83 -129 -89 Siberia 06feb33 -90 -68 Greenland 09jan54 -87 -66 Yukon 03feb47 -81 -63 Alaska 23jan71 -80 -67 ;
DATA Step to Create the Data Set PRECIP.RAIN |
libname precip 'SAS-data-library'; data precip.rain; input Place $ 1-12 @13 Date date7. Inches Cms; format Date date9.; datalines; La Reunion 15mar52 74 188 Taiwan 10sep63 49 125 Australia 04jan79 44 114 Texas 25jul79 43 109 Canada 06oct64 19 49 ;
DATA Step to Create the Data Set PRECIP.SNOW |
libname precip 'SAS-data-library'; data precip.snow; input Place $ 1-12 @13 Date date7. Inches Cms; format Date date9.; datalines; Colorado 14apr21 76 193 Alaska 29dec55 62 158 France 05apr69 68 173 ;
DATA Step to Create the Data Set STORM.TORNADO |
libname storm 'SAS-data-library'; data storm.tornado; input State $ 1-12 @13 Date date7. Deaths Millions; format Date date9. Millions dollar6.; label Millions='Damage in Millions'; datalines; Iowa 11apr65 257 200 Texas 11may70 26 135 Nebraska 06may75 3 400 Connecticut 03oct79 3 200 Georgia 31mar73 9 115 ;
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.