Created
June 19, 2015 16:29
-
-
Save statgeek/944d4a62a142a108b8ad to your computer and use it in GitHub Desktop.
SAS - Import SHP file and create CSV for Tableau
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROC MAPIMPORT OUT=Polygon DATAFILE="Boundaries.shp"; | |
run; | |
data Polygon; | |
set Polygon; | |
by feature_name notsorted; | |
if first.feature_name then order=0; | |
else order+1; | |
run; | |
proc export data=Polygon outfile="Polygon_Tableau.csv" DBMS=CSV; | |
run; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment