Thanks for providing the sample. Will you be reading in many of these, or just the one? You can certainly do this with a data step, though it will probably be best to read in line-by-line. You can use the scan function, for example, to parse the input strings. The DATA step will allow you to output to different data sets, so you could output state names to a temporary set, the numeric values to another, and append them. This is difficult because your data doesn't follow typical CSV patterns. However, it may be easier to reformat the set, especially if you are only reading in the one set. I copied and pasted the data you posted into Excel. I went to Data >> Text to Columns and selected the options of delimeter, comma. Then I formatted it like this: State Note Total Taxes Year Quarter Revision
U.S. Total Excludes D.C. 133987401 2000 1 1
Alabama 1554648 2000 1 1
Alaska 204757 2000 1 1
Arizona Revised 1922171 2000 1 1
Arkansas Revised 1135907 2000 1 1
California 20206217 2000 1 1
Colorado 1614872 2000 1 1
Connecticut Revised 2219791 2000 1 1
Delaware Revised 533972 2000 1 1
Florida Revised 6664802 2000 1 1
Georgia 3295666 2000 1 1
Hawaii 860653 2000 1 1
Idaho Revised 539018 2000 1 1
Illinois Revised 6142447 2000 1 1
Indiana Revised 2492170 2000 1 1
Iowa 1363449 2000 1 1
Kansas 1104084 2000 1 1
Kentucky Revised 1726561 2000 1 1
Louisiana Revised 1494620 2000 1 1
Maine 583932 2000 1 1
Maryland 2267078 2000 1 1
Massachusetts 4055999 2000 1 1
Michigan 6827675 2000 1 1
Minnesota 3719413 2000 1 1
Mississippi 930371 2000 1 1
Missouri Revised 1879749 2000 1 1
Montana Est. 317540 2000 1 1
Nebraska 722445 2000 1 1
Nevada Revised 626221 2000 1 1
New Hampshire 287934 2000 1 1
New Jersey 4029776 2000 1 1
New Mexico Revised 831934 2000 1 1
New York 11762936 2000 1 1
North Carolina 3695397 2000 1 1
North Dakota 274030 2000 1 1
Ohio 5757836 2000 1 1
Oklahoma Revised 1354611 2000 1 1
Oregon 1307216 2000 1 1
Pennsylvania 6049117 2000 1 1
Rhode Island 508208 2000 1 1
South Carolina 1325561 2000 1 1
South Dakota Revised 190918 2000 1 1
Tennessee 1925580 2000 1 1
Texas 6503198 2000 1 1
Utah 867827 2000 1 1
Vermont Revised 341961 2000 1 1
Virginia 2786879 2000 1 1
Washington 3131704 2000 1 1
West Virginia 765184 2000 1 1
Wisconsin 3069464 2000 1 1
Wyoming 213902 2000 1 1
Wash. DC 628645 2000 1 1 The formatting looks off here, but you should be able to copy into Excel. Then PROC import is trivial. Or format it yourself to suit your purpose.
... View more