<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: health care costs out patient choropleth map in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/312205#M10990</link>
    <description>FILENAME op2013"/home/pandyat0/sasuser.v94/Outpatient_CY2013.csv" TERMSTR=LF;&lt;BR /&gt;/** Import the CSV file. **/&lt;BR /&gt;PROC IMPORT DATAFILE=op2013&lt;BR /&gt;OUT=WORK.op2013&lt;BR /&gt;DBMS=CSV&lt;BR /&gt;REPLACE;&lt;BR /&gt;GETNAMES=Yes;&lt;BR /&gt;guessingrows=44353;&lt;BR /&gt;RUN;&lt;BR /&gt;/*Detailed Contents of Outpatient 2013 datafile*/&lt;BR /&gt;proc contents data=op2013;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/* MAPPING CODE STARTS BELOW: */&lt;BR /&gt;/*Use Mapimport to grab shapefile from zipcode folder under Files--&amp;gt;my_content--&amp;gt;zipcode&lt;BR /&gt;* Mapimport will import boundary file*/&lt;BR /&gt;proc MAPIMPORT&lt;BR /&gt;datafile="/home/pandyat0/my_content/zipcode/tl_2010_us_zcta510.shp"&lt;BR /&gt;out=WORK.zshape;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/*Import Ambulatory data columns (prices)*/&lt;BR /&gt;*data op2013; length ProviderZipCode $5.;&lt;BR /&gt;*out=op2013part2;&lt;BR /&gt;* set op2013part2;&lt;BR /&gt;*out=op2013part2;&lt;BR /&gt;*ProviderZipCode=left(geoid);&lt;BR /&gt;*if state='VA';&lt;BR /&gt;*run;&lt;BR /&gt;/* Map the Data*/&lt;BR /&gt;ods graphics on;&lt;BR /&gt;ODS HTML style=statistical;&lt;BR /&gt;goptions ftitle='Arial';&lt;BR /&gt;title1 " "; title10 h=2.2 "Ambulatory Payments Classification System by Avg. Total Payments "; footnote " ";&lt;BR /&gt;/* colors from green-&amp;gt;red */&lt;BR /&gt;pattern1 v=s c=cx00ff00; pattern2 v=s c=cx35ff00; pattern3 v=s c=cx65ff00;&lt;BR /&gt;pattern4 v=s c=cx88ff00; pattern5 v=s c=cx9aff00; pattern6 v=s c=cxbaff00;&lt;BR /&gt;pattern7 v=s c=cxccff00; pattern8 v=s c=cxd0ff00; pattern9 v=s c=cxe0ff00;&lt;BR /&gt;pattern10 v=s c=cxffff00; pattern11 v=s c=cxffee00; pattern12 v=s c=cxffe000;&lt;BR /&gt;pattern13 v=s c=cxffdd00; pattern14 v=s c=cxffdc00; pattern15 v=s c=cxffd800;&lt;BR /&gt;pattern16 v=s c=cxffd100; pattern17 v=s c=cxffcd00; pattern18 v=s c=cxffc000;&lt;BR /&gt;pattern19 v=s c=cxffb700; pattern20 v=s c=cxff9a00; pattern21 v=s c=cxff8700;&lt;BR /&gt;pattern22 v=s c=cxff7700; pattern23 v=s c=cxff5400; pattern24 v=s c=cxff3400;&lt;BR /&gt;pattern25 v=s c=cxff0000;&lt;BR /&gt;&lt;BR /&gt;/*map the data from ambulatory data with shapefile as choropleth map*/&lt;BR /&gt;proc gmap data=op2013 map=WORK.zshape;&lt;BR /&gt;id ProviderZipCode; /* matches values between response and map dataset */&lt;BR /&gt;choro AverageTotalPayments /* response variable */&lt;BR /&gt;/ levels=25 /* pattern/color levels */&lt;BR /&gt;nolegend coutline=same /* turn off boundary lines*/;&lt;BR /&gt;run;quit;&lt;BR /&gt;ODS HTML close;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*&lt;BR /&gt;/*Map of US with states*/&lt;BR /&gt;proc gmap&lt;BR /&gt;map=maps.us&lt;BR /&gt;data=maps.us (obs=1)&lt;BR /&gt;all;&lt;BR /&gt;id state;&lt;BR /&gt;choro state / nolegend;&lt;BR /&gt;run;&lt;BR /&gt;/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/&lt;BR /&gt;I am getting an error no HTML which is below:&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;NOTE: GOPTIONS statements in the SAS Studio environment may disable some output features.&lt;BR /&gt;NOTE: ODS statements in the SAS Studio environment may disable some output features.&lt;BR /&gt;57&lt;BR /&gt;58 ods graphics on;&lt;BR /&gt;59 ODS HTML style=statistical;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml10.htm&lt;BR /&gt;ERROR: Insufficient authorization to access /pbr/biconfig/940/Lev1/SASApp/sashtml10.htm.&lt;BR /&gt;ERROR: No body file. HTML output will not be created.&lt;BR /&gt;60 goptions ftitle='Arial';&lt;BR /&gt;61 title1 " "; title10 h=2.2 "Ambulatory Payments Classification System by Avg. Total Payments "; footnote " ";&lt;BR /&gt;62 /* colors from green-&amp;gt;red */&lt;BR /&gt;63 pattern1 v=s c=cx00ff00; pattern2 v=s c=cx35ff00; pattern3 v=s c=cx65ff00;&lt;BR /&gt;64 pattern4 v=s c=cx88ff00; pattern5 v=s c=cx9aff00; pattern6 v=s c=cxbaff00;&lt;BR /&gt;65 pattern7 v=s c=cxccff00; pattern8 v=s c=cxd0ff00; pattern9 v=s c=cxe0ff00;&lt;BR /&gt;66 pattern10 v=s c=cxffff00; pattern11 v=s c=cxffee00; pattern12 v=s c=cxffe000;&lt;BR /&gt;67 pattern13 v=s c=cxffdd00; pattern14 v=s c=cxffdc00; pattern15 v=s c=cxffd800;&lt;BR /&gt;68 pattern16 v=s c=cxffd100; pattern17 v=s c=cxffcd00; pattern18 v=s c=cxffc000;&lt;BR /&gt;69 pattern19 v=s c=cxffb700; pattern20 v=s c=cxff9a00; pattern21 v=s c=cxff8700;&lt;BR /&gt;70 pattern22 v=s c=cxff7700; pattern23 v=s c=cxff5400; pattern24 v=s c=cxff3400;&lt;BR /&gt;71 pattern25 v=s c=cxff0000;&lt;BR /&gt;72&lt;BR /&gt;73 /*map the data from ambulatory data with shapefile as choropleth map*/&lt;BR /&gt;74 proc gmap data=op2013 map=WORK.zshape;&lt;BR /&gt;75 id ProviderZipCode; /* matches values between response and map dataset */&lt;BR /&gt;76 choro AverageTotalPayments /* response variable */&lt;BR /&gt;77 / levels=25 /* pattern/color levels */&lt;BR /&gt;78 nolegend coutline=same /* turn off boundary lines*/;&lt;BR /&gt;79 run;&lt;BR /&gt;&lt;BR /&gt;ERROR: ID variable ProviderZipCode is not found in MAP data set.&lt;BR /&gt;79 ! quit;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE GMAP used (Total process time):&lt;BR /&gt;real time 0.10 seconds&lt;BR /&gt;user cpu time 0.02 seconds&lt;BR /&gt;system cpu time 0.01 seconds&lt;BR /&gt;memory 5793.93k&lt;BR /&gt;OS Memory 36524.00k&lt;BR /&gt;Timestamp 11/17/2016 04:54:17 AM&lt;BR /&gt;Step Count 48 Switch Count 48&lt;BR /&gt;Page Faults 3&lt;BR /&gt;Page Reclaims 441&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 144&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 1528&lt;BR /&gt;Block Output Operations 56&lt;BR /&gt;&lt;BR /&gt;80 ODS HTML close;&lt;BR /&gt;81 ods graphics off;&lt;BR /&gt;82 /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*&lt;BR /&gt;83 /*Map of US with states*/&lt;BR /&gt;84 proc gmap&lt;BR /&gt;85 map=maps.us&lt;BR /&gt;86 data=maps.us (obs=1)&lt;BR /&gt;87 all;&lt;BR /&gt;88 id state;&lt;BR /&gt;89 choro state / nolegend;&lt;BR /&gt;90 run;&lt;BR /&gt;91&lt;BR /&gt;92&lt;BR /&gt;93 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;105&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My question would be do I need same Zipcode length (my file have 8 and the shape code file is 5 ) Look at 7 (last row).&lt;BR /&gt;&lt;BR /&gt;Alphabetic List of Variables and Attributes&lt;BR /&gt;# Variable Type Len Format Informat&lt;BR /&gt;1 AmbulatoryPaymentClassificationG Char 85 $85. $85.&lt;BR /&gt;10 AverageEstimatedSubmittedCharges Num 8 NLNUM12. NLNUM32.&lt;BR /&gt;11 AverageTotalPayments Num 8 NLNUM12. NLNUM32.&lt;BR /&gt;9 OutpatientServices Num 8 BEST12. BEST32.&lt;BR /&gt;5 ProviderCity Char 15 $15. $15.&lt;BR /&gt;8 ProviderHRR Char 26 $26. $26.&lt;BR /&gt;2 ProviderId Num 8 BEST12. BEST32.&lt;BR /&gt;3 ProviderName Char 51 $51. $51.&lt;BR /&gt;6 ProviderState Char 2 $2. $2.&lt;BR /&gt;4 ProviderStreetAddress Char 44 $44. $44.&lt;BR /&gt;7 ProviderZipCode Num 8 BEST12. BEST32.</description>
    <pubDate>Thu, 17 Nov 2016 04:59:23 GMT</pubDate>
    <dc:creator>pandyat0</dc:creator>
    <dc:date>2016-11-17T04:59:23Z</dc:date>
    <item>
      <title>health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/302253#M10660</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with health data file which I would like to make a choropleth map and map all locations which are on file on a US map?&lt;/P&gt;&lt;P&gt;And run analysis of which hospital (most expensive and least) and also which state/city has most outpatient for ambulatory cause?&amp;nbsp;&lt;/P&gt;&lt;P&gt;the data file looks like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;APCG,ProvId,ProvName,ProvStrAd,ProvCity,ProvSt,ProvZipC,ProvHRR,OPServs,AvgEstSubChrg,AvgTotPay
0013-LevelIIDebridement&amp;amp;Destruction,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,639,$391.64,$54.94
0015-LevelIIIDebridement&amp;amp;Destruction,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,503,$595.82,$83.51
0019-LevelIExcision/Biopsy,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,23,$3531.88,$254.15
0020-LevelIIExcision/Biopsy,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,32,$4596.94,$507.30
0078-LevelIIIPulmonaryTreatment,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,142,$218.82,$87.60
0096-LevelIINoninvasivePhysiologicStudies,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,363,$988.04,$93.59
0204-LevelINerveInjections,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,385,$2084.46,$147.57
0206-LevelIINerveInjections,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,67,$1438.85,$240.75
0207-LevelIIINerveInjections,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,3169,$2228.79,$480.49
"0209-LevelIIExtendedEEG,Sleep,andCardiovascularStudies",10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,729,$4468.12,$697.15
0265-LevelIDiagnosticandScreeningUltrasound,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,279,$805.98,$56.25
0267-LevelIIIDiagnosticandScreeningUltrasound,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,1737,$858.17,$134.91
0269-LevelIIEchocardiogramWithoutContrast,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,844,$2024.28,$339.31
0270-LevelIIIEchocardiogramWithoutContrast,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,40,$2968.67,$486.59
0336-MagneticResonanceImagingandMagneticResonanceAngiographywithoutContrast,10001,SOUTHEASTALABAMAMEDICALCENTER,1108ROSSCLARKCIRCLE,DOTHAN,AL,36301,AL-Dothan,1656,$3729.89,$300.47&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 05:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/302253#M10660</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-10-04T05:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/302260#M10661</link>
      <description>&lt;P&gt;Please see sample maps at&amp;nbsp;&lt;A href="http://robslink.com/SAS/Home.htm" target="_blank"&gt;http://robslink.com/SAS/Home.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;His maps include code samples as well. You'll need to map your locations to latitude and longitude. If you have the addresses look at proc geocode.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 05:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/302260#M10661</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-04T05:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/302332#M10662</link>
      <description>&lt;P&gt;I am not sure what you want to do.&amp;nbsp; Do you want a Choro map with each State or County colored for all the Hospitals in the region?&amp;nbsp; Or do you want a point map with a point for each hospital?&amp;nbsp; I notice that you have multiple records for a hospital.&amp;nbsp; If you draw a point for each one, only one point will show up on your map for that hospital.&amp;nbsp; You can draw a Dot-Density map where it scatters the points around for a hospital so you can see a bunch of points.&amp;nbsp; Below are examples of all three maps.&amp;nbsp; These are on the webpage &lt;A href="http://support.sas.com/rnd/papers/#SGF2011" target="_blank"&gt;http://support.sas.com/rnd/papers/#SGF2011&lt;/A&gt;&amp;nbsp;under the paper title &lt;STRONG&gt;&lt;FONT face="Arial" size="2"&gt;Outbreak Maps: Visually Discovering Your Data&lt;/FONT&gt;&lt;/STRONG&gt;.&amp;nbsp; There is a link to the examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Choro map, Point map and Dot Density map:&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Choro.PNG" alt="Choro.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5136iED4C4B60322693C1/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="point.PNG" alt="point.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5135i567A0C26EE4ECE8F/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="DotDensity.PNG" alt="DotDensity.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5134i2E5178E989123D01/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 13:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/302332#M10662</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2016-10-04T13:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/304689#M10725</link>
      <description>Thank you, Reeza. This site is very helpful in describing variety of maps. I also wanted to ask how do I separate the first column into two where there is a hyphen '-' in the middle. The data is shown above. If you can please give me a suggestion on it. Thank you.&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Oct 2016 14:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/304689#M10725</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-10-14T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/304695#M10726</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Darrell,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you so much. This site is definetely very useful in visulazing maps in sas. Like you suggested, I want a point map with a point for each hospital. So when I draw a point for each one, I want each point to&amp;nbsp;show up on my map for that hospital. So I think&amp;nbsp;drawing a Dot-Density map where it scatters the points around for a hospital is exactly what I was looking for. This is great example with downloadable zip folder. I also would like to make a dot density map of each hospital according to Price (gradients of different colors based on prices). I will post whatever I get here. If you have any suggestions related on which columns I could use to do cost analyitcs please feel free to provide that information. Thank you.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 15:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/304695#M10726</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-10-14T15:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/312204#M10989</link>
      <description>FILENAME op2013"/home/pandyat0/sasuser.v94/Outpatient_CY2013.csv" TERMSTR=LF;&lt;BR /&gt;/** Import the CSV file. **/&lt;BR /&gt;PROC IMPORT DATAFILE=op2013&lt;BR /&gt;OUT=WORK.op2013&lt;BR /&gt;DBMS=CSV&lt;BR /&gt;REPLACE;&lt;BR /&gt;GETNAMES=Yes;&lt;BR /&gt;guessingrows=44353;&lt;BR /&gt;RUN;&lt;BR /&gt;/*Detailed Contents of Outpatient 2013 datafile*/&lt;BR /&gt;proc contents data=op2013;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/* MAPPING CODE STARTS BELOW: */&lt;BR /&gt;/*Use Mapimport to grab shapefile from zipcode folder under Files--&amp;gt;my_content--&amp;gt;zipcode&lt;BR /&gt;* Mapimport will import boundary file*/&lt;BR /&gt;proc MAPIMPORT&lt;BR /&gt;datafile="/home/pandyat0/my_content/zipcode/tl_2010_us_zcta510.shp"&lt;BR /&gt;out=WORK.zshape;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/*Import Ambulatory data columns (prices)*/&lt;BR /&gt;*data op2013; length ProviderZipCode $5.;&lt;BR /&gt;*out=op2013part2;&lt;BR /&gt;* set op2013part2;&lt;BR /&gt;*out=op2013part2;&lt;BR /&gt;*ProviderZipCode=left(geoid);&lt;BR /&gt;*if state='VA';&lt;BR /&gt;*run;&lt;BR /&gt;/* Map the Data*/&lt;BR /&gt;ods graphics on;&lt;BR /&gt;ODS HTML style=statistical;&lt;BR /&gt;goptions ftitle='Arial';&lt;BR /&gt;title1 " "; title10 h=2.2 "Ambulatory Payments Classification System by Avg. Total Payments "; footnote " ";&lt;BR /&gt;/* colors from green-&amp;gt;red */&lt;BR /&gt;pattern1 v=s c=cx00ff00; pattern2 v=s c=cx35ff00; pattern3 v=s c=cx65ff00;&lt;BR /&gt;pattern4 v=s c=cx88ff00; pattern5 v=s c=cx9aff00; pattern6 v=s c=cxbaff00;&lt;BR /&gt;pattern7 v=s c=cxccff00; pattern8 v=s c=cxd0ff00; pattern9 v=s c=cxe0ff00;&lt;BR /&gt;pattern10 v=s c=cxffff00; pattern11 v=s c=cxffee00; pattern12 v=s c=cxffe000;&lt;BR /&gt;pattern13 v=s c=cxffdd00; pattern14 v=s c=cxffdc00; pattern15 v=s c=cxffd800;&lt;BR /&gt;pattern16 v=s c=cxffd100; pattern17 v=s c=cxffcd00; pattern18 v=s c=cxffc000;&lt;BR /&gt;pattern19 v=s c=cxffb700; pattern20 v=s c=cxff9a00; pattern21 v=s c=cxff8700;&lt;BR /&gt;pattern22 v=s c=cxff7700; pattern23 v=s c=cxff5400; pattern24 v=s c=cxff3400;&lt;BR /&gt;pattern25 v=s c=cxff0000;&lt;BR /&gt;&lt;BR /&gt;/*map the data from ambulatory data with shapefile as choropleth map*/&lt;BR /&gt;proc gmap data=op2013 map=WORK.zshape;&lt;BR /&gt;id ProviderZipCode; /* matches values between response and map dataset */&lt;BR /&gt;choro AverageTotalPayments /* response variable */&lt;BR /&gt;/ levels=25 /* pattern/color levels */&lt;BR /&gt;nolegend coutline=same /* turn off boundary lines*/;&lt;BR /&gt;run;quit;&lt;BR /&gt;ODS HTML close;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*&lt;BR /&gt;/*Map of US with states*/&lt;BR /&gt;proc gmap&lt;BR /&gt;map=maps.us&lt;BR /&gt;data=maps.us (obs=1)&lt;BR /&gt;all;&lt;BR /&gt;id state;&lt;BR /&gt;choro state / nolegend;&lt;BR /&gt;run;&lt;BR /&gt;/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/&lt;BR /&gt;I am getting an error no HTML which is below:&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;NOTE: GOPTIONS statements in the SAS Studio environment may disable some output features.&lt;BR /&gt;NOTE: ODS statements in the SAS Studio environment may disable some output features.&lt;BR /&gt;57&lt;BR /&gt;58 ods graphics on;&lt;BR /&gt;59 ODS HTML style=statistical;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml10.htm&lt;BR /&gt;ERROR: Insufficient authorization to access /pbr/biconfig/940/Lev1/SASApp/sashtml10.htm.&lt;BR /&gt;ERROR: No body file. HTML output will not be created.&lt;BR /&gt;60 goptions ftitle='Arial';&lt;BR /&gt;61 title1 " "; title10 h=2.2 "Ambulatory Payments Classification System by Avg. Total Payments "; footnote " ";&lt;BR /&gt;62 /* colors from green-&amp;gt;red */&lt;BR /&gt;63 pattern1 v=s c=cx00ff00; pattern2 v=s c=cx35ff00; pattern3 v=s c=cx65ff00;&lt;BR /&gt;64 pattern4 v=s c=cx88ff00; pattern5 v=s c=cx9aff00; pattern6 v=s c=cxbaff00;&lt;BR /&gt;65 pattern7 v=s c=cxccff00; pattern8 v=s c=cxd0ff00; pattern9 v=s c=cxe0ff00;&lt;BR /&gt;66 pattern10 v=s c=cxffff00; pattern11 v=s c=cxffee00; pattern12 v=s c=cxffe000;&lt;BR /&gt;67 pattern13 v=s c=cxffdd00; pattern14 v=s c=cxffdc00; pattern15 v=s c=cxffd800;&lt;BR /&gt;68 pattern16 v=s c=cxffd100; pattern17 v=s c=cxffcd00; pattern18 v=s c=cxffc000;&lt;BR /&gt;69 pattern19 v=s c=cxffb700; pattern20 v=s c=cxff9a00; pattern21 v=s c=cxff8700;&lt;BR /&gt;70 pattern22 v=s c=cxff7700; pattern23 v=s c=cxff5400; pattern24 v=s c=cxff3400;&lt;BR /&gt;71 pattern25 v=s c=cxff0000;&lt;BR /&gt;72&lt;BR /&gt;73 /*map the data from ambulatory data with shapefile as choropleth map*/&lt;BR /&gt;74 proc gmap data=op2013 map=WORK.zshape;&lt;BR /&gt;75 id ProviderZipCode; /* matches values between response and map dataset */&lt;BR /&gt;76 choro AverageTotalPayments /* response variable */&lt;BR /&gt;77 / levels=25 /* pattern/color levels */&lt;BR /&gt;78 nolegend coutline=same /* turn off boundary lines*/;&lt;BR /&gt;79 run;&lt;BR /&gt;&lt;BR /&gt;ERROR: ID variable ProviderZipCode is not found in MAP data set.&lt;BR /&gt;79 ! quit;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE GMAP used (Total process time):&lt;BR /&gt;real time 0.10 seconds&lt;BR /&gt;user cpu time 0.02 seconds&lt;BR /&gt;system cpu time 0.01 seconds&lt;BR /&gt;memory 5793.93k&lt;BR /&gt;OS Memory 36524.00k&lt;BR /&gt;Timestamp 11/17/2016 04:54:17 AM&lt;BR /&gt;Step Count 48 Switch Count 48&lt;BR /&gt;Page Faults 3&lt;BR /&gt;Page Reclaims 441&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 144&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 1528&lt;BR /&gt;Block Output Operations 56&lt;BR /&gt;&lt;BR /&gt;80 ODS HTML close;&lt;BR /&gt;81 ods graphics off;&lt;BR /&gt;82 /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*&lt;BR /&gt;83 /*Map of US with states*/&lt;BR /&gt;84 proc gmap&lt;BR /&gt;85 map=maps.us&lt;BR /&gt;86 data=maps.us (obs=1)&lt;BR /&gt;87 all;&lt;BR /&gt;88 id state;&lt;BR /&gt;89 choro state / nolegend;&lt;BR /&gt;90 run;&lt;BR /&gt;91&lt;BR /&gt;92&lt;BR /&gt;93 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;105&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My question would be do I need same Zipcode length (my file have 8 and the shape code file is 5 ) Look at 7 (last row).&lt;BR /&gt;&lt;BR /&gt;Alphabetic List of Variables and Attributes&lt;BR /&gt;# Variable Type Len Format Informat&lt;BR /&gt;1 AmbulatoryPaymentClassificationG Char 85 $85. $85.&lt;BR /&gt;10 AverageEstimatedSubmittedCharges Num 8 NLNUM12. NLNUM32.&lt;BR /&gt;11 AverageTotalPayments Num 8 NLNUM12. NLNUM32.&lt;BR /&gt;9 OutpatientServices Num 8 BEST12. BEST32.&lt;BR /&gt;5 ProviderCity Char 15 $15. $15.&lt;BR /&gt;8 ProviderHRR Char 26 $26. $26.&lt;BR /&gt;2 ProviderId Num 8 BEST12. BEST32.&lt;BR /&gt;3 ProviderName Char 51 $51. $51.&lt;BR /&gt;6 ProviderState Char 2 $2. $2.&lt;BR /&gt;4 ProviderStreetAddress Char 44 $44. $44.&lt;BR /&gt;7 ProviderZipCode Num 8 BEST12. BEST32.&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Nov 2016 04:58:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/312204#M10989</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-11-17T04:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/312205#M10990</link>
      <description>FILENAME op2013"/home/pandyat0/sasuser.v94/Outpatient_CY2013.csv" TERMSTR=LF;&lt;BR /&gt;/** Import the CSV file. **/&lt;BR /&gt;PROC IMPORT DATAFILE=op2013&lt;BR /&gt;OUT=WORK.op2013&lt;BR /&gt;DBMS=CSV&lt;BR /&gt;REPLACE;&lt;BR /&gt;GETNAMES=Yes;&lt;BR /&gt;guessingrows=44353;&lt;BR /&gt;RUN;&lt;BR /&gt;/*Detailed Contents of Outpatient 2013 datafile*/&lt;BR /&gt;proc contents data=op2013;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/* MAPPING CODE STARTS BELOW: */&lt;BR /&gt;/*Use Mapimport to grab shapefile from zipcode folder under Files--&amp;gt;my_content--&amp;gt;zipcode&lt;BR /&gt;* Mapimport will import boundary file*/&lt;BR /&gt;proc MAPIMPORT&lt;BR /&gt;datafile="/home/pandyat0/my_content/zipcode/tl_2010_us_zcta510.shp"&lt;BR /&gt;out=WORK.zshape;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/*Import Ambulatory data columns (prices)*/&lt;BR /&gt;*data op2013; length ProviderZipCode $5.;&lt;BR /&gt;*out=op2013part2;&lt;BR /&gt;* set op2013part2;&lt;BR /&gt;*out=op2013part2;&lt;BR /&gt;*ProviderZipCode=left(geoid);&lt;BR /&gt;*if state='VA';&lt;BR /&gt;*run;&lt;BR /&gt;/* Map the Data*/&lt;BR /&gt;ods graphics on;&lt;BR /&gt;ODS HTML style=statistical;&lt;BR /&gt;goptions ftitle='Arial';&lt;BR /&gt;title1 " "; title10 h=2.2 "Ambulatory Payments Classification System by Avg. Total Payments "; footnote " ";&lt;BR /&gt;/* colors from green-&amp;gt;red */&lt;BR /&gt;pattern1 v=s c=cx00ff00; pattern2 v=s c=cx35ff00; pattern3 v=s c=cx65ff00;&lt;BR /&gt;pattern4 v=s c=cx88ff00; pattern5 v=s c=cx9aff00; pattern6 v=s c=cxbaff00;&lt;BR /&gt;pattern7 v=s c=cxccff00; pattern8 v=s c=cxd0ff00; pattern9 v=s c=cxe0ff00;&lt;BR /&gt;pattern10 v=s c=cxffff00; pattern11 v=s c=cxffee00; pattern12 v=s c=cxffe000;&lt;BR /&gt;pattern13 v=s c=cxffdd00; pattern14 v=s c=cxffdc00; pattern15 v=s c=cxffd800;&lt;BR /&gt;pattern16 v=s c=cxffd100; pattern17 v=s c=cxffcd00; pattern18 v=s c=cxffc000;&lt;BR /&gt;pattern19 v=s c=cxffb700; pattern20 v=s c=cxff9a00; pattern21 v=s c=cxff8700;&lt;BR /&gt;pattern22 v=s c=cxff7700; pattern23 v=s c=cxff5400; pattern24 v=s c=cxff3400;&lt;BR /&gt;pattern25 v=s c=cxff0000;&lt;BR /&gt;&lt;BR /&gt;/*map the data from ambulatory data with shapefile as choropleth map*/&lt;BR /&gt;proc gmap data=op2013 map=WORK.zshape;&lt;BR /&gt;id ProviderZipCode; /* matches values between response and map dataset */&lt;BR /&gt;choro AverageTotalPayments /* response variable */&lt;BR /&gt;/ levels=25 /* pattern/color levels */&lt;BR /&gt;nolegend coutline=same /* turn off boundary lines*/;&lt;BR /&gt;run;quit;&lt;BR /&gt;ODS HTML close;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*&lt;BR /&gt;/*Map of US with states*/&lt;BR /&gt;proc gmap&lt;BR /&gt;map=maps.us&lt;BR /&gt;data=maps.us (obs=1)&lt;BR /&gt;all;&lt;BR /&gt;id state;&lt;BR /&gt;choro state / nolegend;&lt;BR /&gt;run;&lt;BR /&gt;/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/&lt;BR /&gt;I am getting an error no HTML which is below:&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;NOTE: GOPTIONS statements in the SAS Studio environment may disable some output features.&lt;BR /&gt;NOTE: ODS statements in the SAS Studio environment may disable some output features.&lt;BR /&gt;57&lt;BR /&gt;58 ods graphics on;&lt;BR /&gt;59 ODS HTML style=statistical;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml10.htm&lt;BR /&gt;ERROR: Insufficient authorization to access /pbr/biconfig/940/Lev1/SASApp/sashtml10.htm.&lt;BR /&gt;ERROR: No body file. HTML output will not be created.&lt;BR /&gt;60 goptions ftitle='Arial';&lt;BR /&gt;61 title1 " "; title10 h=2.2 "Ambulatory Payments Classification System by Avg. Total Payments "; footnote " ";&lt;BR /&gt;62 /* colors from green-&amp;gt;red */&lt;BR /&gt;63 pattern1 v=s c=cx00ff00; pattern2 v=s c=cx35ff00; pattern3 v=s c=cx65ff00;&lt;BR /&gt;64 pattern4 v=s c=cx88ff00; pattern5 v=s c=cx9aff00; pattern6 v=s c=cxbaff00;&lt;BR /&gt;65 pattern7 v=s c=cxccff00; pattern8 v=s c=cxd0ff00; pattern9 v=s c=cxe0ff00;&lt;BR /&gt;66 pattern10 v=s c=cxffff00; pattern11 v=s c=cxffee00; pattern12 v=s c=cxffe000;&lt;BR /&gt;67 pattern13 v=s c=cxffdd00; pattern14 v=s c=cxffdc00; pattern15 v=s c=cxffd800;&lt;BR /&gt;68 pattern16 v=s c=cxffd100; pattern17 v=s c=cxffcd00; pattern18 v=s c=cxffc000;&lt;BR /&gt;69 pattern19 v=s c=cxffb700; pattern20 v=s c=cxff9a00; pattern21 v=s c=cxff8700;&lt;BR /&gt;70 pattern22 v=s c=cxff7700; pattern23 v=s c=cxff5400; pattern24 v=s c=cxff3400;&lt;BR /&gt;71 pattern25 v=s c=cxff0000;&lt;BR /&gt;72&lt;BR /&gt;73 /*map the data from ambulatory data with shapefile as choropleth map*/&lt;BR /&gt;74 proc gmap data=op2013 map=WORK.zshape;&lt;BR /&gt;75 id ProviderZipCode; /* matches values between response and map dataset */&lt;BR /&gt;76 choro AverageTotalPayments /* response variable */&lt;BR /&gt;77 / levels=25 /* pattern/color levels */&lt;BR /&gt;78 nolegend coutline=same /* turn off boundary lines*/;&lt;BR /&gt;79 run;&lt;BR /&gt;&lt;BR /&gt;ERROR: ID variable ProviderZipCode is not found in MAP data set.&lt;BR /&gt;79 ! quit;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE GMAP used (Total process time):&lt;BR /&gt;real time 0.10 seconds&lt;BR /&gt;user cpu time 0.02 seconds&lt;BR /&gt;system cpu time 0.01 seconds&lt;BR /&gt;memory 5793.93k&lt;BR /&gt;OS Memory 36524.00k&lt;BR /&gt;Timestamp 11/17/2016 04:54:17 AM&lt;BR /&gt;Step Count 48 Switch Count 48&lt;BR /&gt;Page Faults 3&lt;BR /&gt;Page Reclaims 441&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 144&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 1528&lt;BR /&gt;Block Output Operations 56&lt;BR /&gt;&lt;BR /&gt;80 ODS HTML close;&lt;BR /&gt;81 ods graphics off;&lt;BR /&gt;82 /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*&lt;BR /&gt;83 /*Map of US with states*/&lt;BR /&gt;84 proc gmap&lt;BR /&gt;85 map=maps.us&lt;BR /&gt;86 data=maps.us (obs=1)&lt;BR /&gt;87 all;&lt;BR /&gt;88 id state;&lt;BR /&gt;89 choro state / nolegend;&lt;BR /&gt;90 run;&lt;BR /&gt;91&lt;BR /&gt;92&lt;BR /&gt;93 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;105&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My question would be do I need same Zipcode length (my file have 8 and the shape code file is 5 ) Look at 7 (last row).&lt;BR /&gt;&lt;BR /&gt;Alphabetic List of Variables and Attributes&lt;BR /&gt;# Variable Type Len Format Informat&lt;BR /&gt;1 AmbulatoryPaymentClassificationG Char 85 $85. $85.&lt;BR /&gt;10 AverageEstimatedSubmittedCharges Num 8 NLNUM12. NLNUM32.&lt;BR /&gt;11 AverageTotalPayments Num 8 NLNUM12. NLNUM32.&lt;BR /&gt;9 OutpatientServices Num 8 BEST12. BEST32.&lt;BR /&gt;5 ProviderCity Char 15 $15. $15.&lt;BR /&gt;8 ProviderHRR Char 26 $26. $26.&lt;BR /&gt;2 ProviderId Num 8 BEST12. BEST32.&lt;BR /&gt;3 ProviderName Char 51 $51. $51.&lt;BR /&gt;6 ProviderState Char 2 $2. $2.&lt;BR /&gt;4 ProviderStreetAddress Char 44 $44. $44.&lt;BR /&gt;7 ProviderZipCode Num 8 BEST12. BEST32.</description>
      <pubDate>Thu, 17 Nov 2016 04:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/312205#M10990</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-11-17T04:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/312345#M10999</link>
      <description>&lt;P&gt;Well, first you have an error before ProviderZipCode.&amp;nbsp; There is this:&lt;/P&gt;
&lt;P&gt;NOTE: Writing HTML Body file: sashtml10.htm&lt;BR /&gt;ERROR: Insufficient authorization to access /pbr/biconfig/940/Lev1/SASApp/sashtml10.htm.&lt;BR /&gt;ERROR: No body file. HTML output will not be created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may be that SAS Studio cannot write to this location.&amp;nbsp; You should try something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;filename&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; odsout &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'c:\'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;GOPTIONS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DEVICE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=png;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ODS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;HTML&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;style&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=statistical &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;path&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=odsout &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;body&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"map.html"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;gmap&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=mapsgfk.world &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;map&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=mapsgfk.world; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;id&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; id; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;choro&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; id; &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;quit&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ODS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;HTML&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;close&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;graphics&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;off&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Second, I think you would get a warning for 2 different lengths, not&amp;nbsp;a "variable is not found" error.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Get rid of the first error first.&amp;nbsp; If the second error continues after that, make sure that your MAP data set (Work.ZSHAPE) actually has ProviderZipCode in it.&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;You might run a piece of the program at a time and check to see that each step is behaving as you think and the data set has the variables that you think should be there.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 14:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/312345#M10999</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2016-11-17T14:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/313364#M11021</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
filename odsout '/home/pandyat0/my_content/zipcode/';
GOPTIONS DEVICE=png;
ODS HTML style=statistical path=odsout body="map.html";
goptions ftitle='Arial';
/*map the data from ambulatory data with shapefile as choropleth map*/
proc gmap data=op2013 map=WORK.zshape; /*id ProviderZipCode; */
id ZCTA5CE10;
choro OutpatientServices;
run;quit;
ODS HTML close;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 NOTE: GOPTIONS statements in the SAS Studio environment may disable some output features.
 NOTE: ODS statements in the SAS Studio environment may disable some output features.
 57         
 58         ods graphics on;
 59         filename odsout '/home/pandyat0/my_content/zipcode/';
 60         GOPTIONS DEVICE=png;
 61         ODS HTML style=statistical path=odsout body="map.html";
 NOTE: Writing HTML Body file: map.html
 62         goptions ftitle='Arial';
 63         /*map the data from ambulatory data with shapefile as choropleth map*/
 64         proc gmap data=op2013 map=WORK.zshape; /*id ProviderZipCode; */
 65         id ZCTA5CE10;
 ERROR: Variable ZCTA5CE10 not found.
 NOTE: The previous statement has been deleted.
 66         choro OutpatientServices;
 67         run;
 
 ERROR: No ID variables specified.
 67       !     quit;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE GMAP used (Total process time):
       real time           0.01 seconds
       user cpu time       0.01 seconds
       system cpu time     0.00 seconds
       memory              3651.03k
       OS Memory           38828.00k
       Timestamp           11/22/2016 06:53:40 AM
       Step Count                        75  Switch Count  42
       Page Faults                       0
       Page Reclaims                     139
       Page Swaps                        0
       Voluntary Context Switches        112
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           72
       
 68         ODS HTML close;
 69         ods graphics off;
 70         
 71         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 83         &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi Darrell, Thank you for your response. I tried your code and I got the errors above. I believe I need to have same length characters for&amp;nbsp;ZCTA5CE10 as the file I have which has ProviderZipCode 8 Numerical (last post has that shown). I don't know what should I do to fix this error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, When I tried this way, it gave me 1 error instead 2.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
filename odsout '/home/pandyat0/my_content/zipcode/';
GOPTIONS DEVICE=png;
ODS HTML style=statistical path=odsout body="map.html";
goptions ftitle='Arial';
/*map the data from ambulatory data with shapefile as choropleth map*/
proc gmap data=op2013 map=WORK.zshape; /*id ProviderZipCode; */
id ProviderZipCode;
choro OutpatientServices;
run;quit;
ODS HTML close;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 NOTE: GOPTIONS statements in the SAS Studio environment may disable some output features.
 NOTE: ODS statements in the SAS Studio environment may disable some output features.
 57         
 58         ods graphics on;
 59         filename odsout '/home/pandyat0/my_content/zipcode/';
 60         GOPTIONS DEVICE=png;
 61         ODS HTML style=statistical path=odsout body="map.html";
 NOTE: Writing HTML Body file: map.html
 62         goptions ftitle='Arial';
 63         /*map the data from ambulatory data with shapefile as choropleth map*/
 64         proc gmap data=op2013 map=WORK.zshape; /*id ProviderZipCode; */
 65         id ProviderZipCode;
 66         choro OutpatientServices;
 67         run;
 
 ERROR: ID variable ProviderZipCode is not found in MAP data set.
 67       !     quit;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE GMAP used (Total process time):
       real time           0.03 seconds
       user cpu time       0.03 seconds
       system cpu time     0.00 seconds
       memory              5477.15k
       OS Memory           40620.00k
       Timestamp           11/22/2016 06:59:43 AM
       Step Count                        80  Switch Count  38
       Page Faults                       0
       Page Reclaims                     531
       Page Swaps                        0
       Voluntary Context Switches        97
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           96
       
 68         ODS HTML close;
 69         ods graphics off;
 70         
 71         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 83         &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Nov 2016 07:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/313364#M11021</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-11-22T07:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/313461#M11023</link>
      <description>&lt;P&gt;Whatever your ID statement is, that variable must be in both your DATA= data set AND your MAP= data set.&lt;/P&gt;
&lt;P&gt;The ID statement and variable is how it matches up the two data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if you have:&lt;/P&gt;
&lt;P&gt;proc gmap data=aaa map=bbb; id thisvar; choro chorovar; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both data sets "aaa" and "bbb" must have "thisvar" in them or you will get an error.&lt;/P&gt;
&lt;P&gt;"chorovar" must be in "aaa" (the DATA= data set).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are getting a Error about the ID variable not being in the MAP= data set (work.zshape).&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 13:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/313461#M11023</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2016-11-22T13:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/314382#M11046</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME op2013 "/home/pandyat0/sasuser.v94/Outpatient_2013withzcta.csv" TERMSTR=LF;
/** Import the CSV file.  **/
PROC IMPORT DATAFILE=op2013
		    OUT=WORK.op2013
		    DBMS=CSV
		    REPLACE;
		    GETNAMES=Yes;
		    guessingrows=44353;
RUN;
/*Detailed Contents of Outpatient 2013 datafile*/
proc contents data=op2013;
run;
/*Convert GEOID (same as zipcode) from numeric to character */
data WORK.op2013V1; set WORK.op2013;
* convert ProviderZipCode from Numeric to Character*;
ZCTA5CE10_char=put(ZCTA5CE10,5.);
drop ZCTA5CE10;
rename ZCTA5CE10_char=ZCTA5CE10;
run;
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/* MAPPING CODE STARTS BELOW: */
/*Use Mapimport to grab shapefile from zipcode folder under Files--&amp;gt;my_content--&amp;gt;zipcode
* Mapimport will import boundary file*/
proc MAPIMPORT datafile="/home/pandyat0/my_content/zipcode/tl_2010_us_zcta510.shp" out=zshape;
run;
/* Map the Data*/
ods graphics on;
filename odsout '/home/pandyat0/my_content/zipcode/';
GOPTIONS DEVICE=png;
ODS HTML style=statistical path=odsout body="map.html";
goptions ftitle='Arial';
goptions cpattern=greenyellow;
goptions colors=(blue red green) ctext=black;
title1 " "; title10 h=2.2 "Ambulatory Payments Classification System by Avg. Total Payments "; footnote " ";
/* colors from green-&amp;gt;red */
pattern1 v=s c=cx00ff00; pattern2 v=s c=cx35ff00; pattern3 v=s c=cx65ff00;
pattern4 v=s c=cx88ff00; pattern5 v=s c=cx9aff00; pattern6 v=s c=cxbaff00;
pattern7 v=s c=cxccff00; pattern8 v=s c=cxd0ff00; pattern9 v=s c=cxe0ff00;
pattern10 v=s c=cxffff00; pattern11 v=s c=cxffee00; pattern12 v=s c=cxffe000;
pattern13 v=s c=cxffdd00; pattern14 v=s c=cxffdc00; pattern15 v=s c=cxffd800;
pattern16 v=s c=cxffd100; pattern17 v=s c=cxffcd00; pattern18 v=s c=cxffc000;
pattern19 v=s c=cxffb700; pattern20 v=s c=cxff9a00; pattern21 v=s c=cxff8700;
pattern22 v=s c=cxff7700; pattern23 v=s c=cxff5400; pattern24 v=s c=cxff3400;
pattern25 v=s c=cxff0000; 
/*map the data from ambulatory data with shapefile as choropleth map*/
proc gmap data=WORK.op2013V1 map=zshape; /*id ProviderZipCode; */
id ZCTA5CE10;
choro avgpymnt / levels= 25 nolegend coutline= same;
run;quit;
ODS HTML close;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now I have a map with just one color.&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6022iEF92B14A7D6DDDEC/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sasmap.png" title="sasmap.png" /&gt;&lt;/P&gt;&lt;P&gt;I want to use choro avrgpaymnt to give gradients with red yellow green heatmap. The avgpymny values are ranging from $0.00 to $ 20,000.00, How do I write a for loop or some loop to give different color granularity. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 23:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/314382#M11046</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-11-25T23:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/314490#M11052</link>
      <description>&lt;P&gt;I have changed the data file a little. I have downloaded a gazateer data from the tutorial &lt;A title="A sas Zipcode mapping example" href="http://support.sas.com/resources/papers/proceedings13/214-2013.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings13/214-2013.pdf&lt;/A&gt;&amp;nbsp;. After then I added a new column called average medicare payments in excel. I then used VLOOKUP to match the prices with zipcode or GEOID. (&lt;A title="vlookup" href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=video&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0ahUKEwjzo7ajrsXQAhUn5YMKHW3pAq4QtwIIGjAA&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuRNlURmep0g&amp;amp;usg=AFQjCNHDljlJ0X97YSGBcaAwZRsrWfayFA&amp;amp;bvm=bv.139782543,d.eWE" target="_blank"&gt;Click Here use VLOOKUP.&lt;/A&gt;). Here is the screenshot of what my dataset looks like. Also I renamed Zipcode as ZCTA5CE10 (Also right click on that column and go to format cells and go to Custom and under Types: type--&amp;gt; 00000 &amp;nbsp;( which will change to text as 5 characters.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6033i6C73DF95D36268B3/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="datasample.png" title="datasample.png" /&gt;&lt;/P&gt;&lt;P&gt;Then save excel file as csv or txt and upload that file on SAS Studio. I have then save that file on directory for furuther analysis and used code below.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2016 21:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/314490#M11052</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-11-26T21:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/314634#M11053</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; **STEP 1: Get the data from the directory;&lt;BR /&gt;FILENAME op2013 "/home/pandyat0/sasuser.v94/Outpatient_CY2013.csv" TERMSTR=LF;&lt;BR /&gt;&lt;BR /&gt;/** Data imported as .CSV file format. **/&lt;BR /&gt;PROC IMPORT DATAFILE=op2013 OUT=WORK.op2013 DBMS=CSV REPLACE;&lt;BR /&gt; GETNAMES=Yes;&lt;BR /&gt; guessingrows=44353;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;/*STEP 2: Chech the contents within the data. */&lt;BR /&gt;/*Detailed Contents of Outpatient 2013 datafile*/&lt;BR /&gt;proc contents data=op2013;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/*STEP 3: Convert variables into necessary format. (Char to Num., vice versa.) */&lt;BR /&gt;/*Convert GEOID (same as zipcode) from numeric to character */&lt;BR /&gt;data WORK.op2013V1;&lt;BR /&gt; set WORK.op2013;&lt;BR /&gt; * convert ProviderZipCode from Numeric to Character*;&lt;BR /&gt; ZCTA5CE10_char=put(ZCTA5CE10, 5.);&lt;BR /&gt; AverageTotalPayments_num=INPUT(AverageTotalPayments, 8.0);&lt;BR /&gt; drop ZCTA5CE10;&lt;BR /&gt; rename ZCTA5CE10_char=ZCTA5CE10;&lt;BR /&gt; *AverageTotalPayments_num=INPUT(AverageTotalPayments, 8.0);&lt;BR /&gt; *drop AverageTotalPayments;&lt;BR /&gt; *rename AverageTotalPayments_num=AverageTotalPayments;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc contents data=op2013V1;&lt;BR /&gt;run;&lt;BR /&gt;*data WORK.op2013V1;&lt;BR /&gt; *set WORK.op2013;&lt;BR /&gt; * convert AverageTotalPayments from Character to Numeric*;&lt;BR /&gt; *AverageTotalPayments_num=INPUT(AverageTotalPayments, 8.0);&lt;BR /&gt; *drop AverageTotalPayments;&lt;BR /&gt; *rename AverageTotalPayments_num=AverageTotalPayments;&lt;BR /&gt;*run;&lt;BR /&gt;&lt;BR /&gt;/*STEP 4: Mapimport will import boundary file as .shp format*/&lt;BR /&gt;proc MAPIMPORT &lt;BR /&gt; datafile="/home/pandyat0/my_content/zipcode/tl_2010_us_zcta510.shp" &lt;BR /&gt; out=zshape;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc contents data=zshape; run;&lt;BR /&gt;/*STEP 5: Map the data using GMAP procedure*/&lt;BR /&gt;GOPTIONS DEVICE=png cback=white noborder;&lt;BR /&gt;ods listing close;&lt;BR /&gt;*ods graphics on;&lt;BR /&gt;filename odsout '/home/pandyat0/my_content/zipcode/';&lt;BR /&gt;ODS HTML path=odsout body="map.html";&lt;BR /&gt;goptions htitle=4 ftitle="Thorndale AMT/bold" &lt;BR /&gt; htext=3 ftext="Thorndale AMT" ctext=gray55;&lt;BR /&gt;footnote1 "";&lt;BR /&gt;title1 h=2.2 "Ambulatory Payments Classification System";&lt;BR /&gt;&lt;BR /&gt;/* colors from green-&amp;gt;red */&lt;BR /&gt;pattern1 v=s c=cx00ff00;&lt;BR /&gt;pattern2 v=s c=cx35ff00;&lt;BR /&gt;pattern3 v=s c=cx65ff00;&lt;BR /&gt;pattern4 v=s c=cx88ff00;&lt;BR /&gt;pattern5 v=s c=cx9aff00;&lt;BR /&gt;pattern6 v=s c=cxbaff00;&lt;BR /&gt;pattern7 v=s c=cxccff00;&lt;BR /&gt;pattern8 v=s c=cxd0ff00;&lt;BR /&gt;pattern9 v=s c=cxe0ff00;&lt;BR /&gt;pattern10 v=s c=cxffff00;&lt;BR /&gt;pattern11 v=s c=cxffee00;&lt;BR /&gt;pattern12 v=s c=cxffe000;&lt;BR /&gt;pattern13 v=s c=cxffdd00;&lt;BR /&gt;pattern14 v=s c=cxffdc00;&lt;BR /&gt;pattern15 v=s c=cxffd800;&lt;BR /&gt;pattern16 v=s c=cxffd100;&lt;BR /&gt;pattern17 v=s c=cxffcd00;&lt;BR /&gt;pattern18 v=s c=cxffc000;&lt;BR /&gt;pattern19 v=s c=cxffb700;&lt;BR /&gt;pattern20 v=s c=cxff9a00;&lt;BR /&gt;pattern21 v=s c=cxff8700;&lt;BR /&gt;pattern22 v=s c=cxff7700;&lt;BR /&gt;pattern23 v=s c=cxff5400;&lt;BR /&gt;pattern24 v=s c=cxff3400;&lt;BR /&gt;pattern25 v=s c=cxff0000;&lt;BR /&gt;&lt;BR /&gt;/*map the data from ambulatory data with shapefile as choropleth map*/&lt;BR /&gt;proc gmap data=WORK.op2013V1 map=Work.zshape;&lt;BR /&gt; id ZCTA5CE10;&lt;BR /&gt; choro AverageTotalPayments_num / levels=25 &lt;BR /&gt; nolegend &lt;BR /&gt; coutline=black&lt;BR /&gt; Statistic=first;&lt;BR /&gt; run;&lt;BR /&gt;quit;&lt;BR /&gt;ODS HTML close;&lt;BR /&gt;ods listing;&lt;BR /&gt;*ods graphics off;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 NOTE: GOPTIONS statements in the SAS Studio environment may disable some output features.
 NOTE: ODS statements in the SAS Studio environment may disable some output features.
 57         
 58         GOPTIONS DEVICE=png cback=white noborder;
 59         ods listing close;
 60         *ods graphics on;
 61         filename odsout '/home/pandyat0/my_content/zipcode/';
 62         ODS HTML path=odsout body="map.html";
 NOTE: Writing HTML Body file: map.html
 63         goptions htitle=4 ftitle="Thorndale AMT/bold"
 NOTE: No units specified for the HTITLE option. The current units associated with GUNIT will be used.
 64                  htext=3  ftext="Thorndale AMT" ctext=gray55;
 NOTE: No units specified for the HTEXT option. The current units associated with GUNIT will be used.
 65         footnote1 "";
 66         title1 h=2.2 "Ambulatory Payments Classification System";
 67         
 68         /* colors from green-&amp;gt;red */
 69         pattern1  v=s c=cx00ff00;
 70         pattern2  v=s c=cx35ff00;
 71         pattern3  v=s c=cx65ff00;
 72         pattern4  v=s c=cx88ff00;
 73         pattern5  v=s c=cx9aff00;
 74         pattern6  v=s c=cxbaff00;
 75         pattern7  v=s c=cxccff00;
 76         pattern8  v=s c=cxd0ff00;
 77         pattern9  v=s c=cxe0ff00;
 78         pattern10 v=s c=cxffff00;
 79         pattern11 v=s c=cxffee00;
 80         pattern12 v=s c=cxffe000;
 81         pattern13 v=s c=cxffdd00;
 82         pattern14 v=s c=cxffdc00;
 83         pattern15 v=s c=cxffd800;
 84         pattern16 v=s c=cxffd100;
 85         pattern17 v=s c=cxffcd00;
 86         pattern18 v=s c=cxffc000;
 87         pattern19 v=s c=cxffb700;
 88         pattern20 v=s c=cxff9a00;
 89         pattern21 v=s c=cxff8700;
 90         pattern22 v=s c=cxff7700;
 91         pattern23 v=s c=cxff5400;
 92         pattern24 v=s c=cxff3400;
 93         pattern25 v=s c=cxff0000;
 94         
 95         /*map the data from ambulatory data with shapefile as choropleth map*/
 96         proc gmap data=WORK.op2013V1 map=Work.zshape;
 97         id ZCTA5CE10;
 98         choro AverageTotalPayments_num / levels=25
 99          nolegend
 100         coutline=black
 101         Statistic=first;
 102        run;
 
 ERROR: No valid levels for a map.
 ERROR: No valid levels for a map.
 ERROR: No valid levels for a map.
 ERROR: No valid levels for a map.
 103        quit;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE GMAP used (Total process time):
       real time           11.93 seconds
       user cpu time       9.34 seconds
       system cpu time     2.60 seconds
       memory              7975.84k
       OS Memory           42716.00k
       Timestamp           11/27/2016 05:48:21 PM
       Step Count                        64  Switch Count  78
       Page Faults                       0
       Page Reclaims                     1636
       Page Swaps                        0
       Voluntary Context Switches        242
       Involuntary Context Switches      37
       Block Input Operations            0
       Block Output Operations           264
       
 104        ODS HTML close;
 105        ods listing;
 106        
 107        
 108        OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 120        &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am getting errors : No valid levels for a map. I dont know how to get rid of these errors. Just so you know, I am running this code on SAS Studio and I don't know if SAS studio is not recognizing these functions. Any help is greatly appreciated. Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 18:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/314634#M11053</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-11-27T18:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/314675#M11054</link>
      <description>&lt;P&gt;I did have working ODS graphics working before (like 2 days ago!) but now its saying that ERROR: NO VALID LEVELS FOR A MAP.&lt;/P&gt;&lt;P&gt;I have inserted image below of what I had before, I am trying to get that image back. I tried to make that code (which gave me an image) work little better and I messed it up. I guess thats what happened. Can anyone please let me know what can I do to remove those errors of no valid levels for a map. Just a note, I am using SAS STUDIO. I also have attached logs as well as codes of what i have so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6045iD8D63F1275DD1FA4/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="averageambulatorycostsbyzipcode.png" title="averageambulatorycostsbyzipcode.png" width="928" height="532" /&gt;&lt;/P&gt;&lt;P&gt;I have used the example from sas support files,&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings13/214-2013.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings13/214-2013.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and the forum above to make the code that gave me this map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used levels = 25 for this map which I dont know how it binned out (which color represents which values). Let me know what you think and as always any help is greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;-pandyat0&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 23:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/314675#M11054</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-11-27T23:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/314715#M11058</link>
      <description>&lt;P&gt;How to resolve SAS Studio error proc gmap ERROR: No valid levels for a map. &amp;nbsp;in Sas studio.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 03:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/314715#M11058</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-11-28T03:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/315183#M11070</link>
      <description>&lt;P&gt;It's really difficult to know how to help you, without knowing all the info about your custom map and the dataset you're trying to plot. This might be a problem that would be better to work directly with tech support to figure out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is one scenario that generates the error you're seeing - a data= dataset that has no non-missing values (but I can't say whether or not your dataset has no non-missing values - this is just a wild "shot in the dark").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data foo;&lt;BR /&gt;statecode='NC'; salary=.;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gmap data=foo map=mapsgfk.us;&lt;BR /&gt;id statecode;&lt;BR /&gt;choro salary;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: No valid levels for a map.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 14:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/315183#M11070</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2016-11-29T14:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/316464#M11084</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello Robert,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you for your feedback. I took the same approach to code and restarted the whole code from scratch and here are the results.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6200i26E97C29A24F1E11/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Average Total Payments.png" title="Average Total Payments.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME op2013 "/home/pandyad0/sasuser.v94/Outpatient_CY2013.csv" TERMSTR=crlf;
PROC IMPORT DATAFILE=op2013
				OUT=WORK.op2013
				DBMS=CSV
				REPLACE;
				GETNAMES=YES;
				guessingrows=44353;
RUN;
proc contents data=op2013;
run;
data WORK.op2013V1; set WORK.op2013;
ZCTA5CE10_char=put(ZCTA5CE10,5.);
drop ZCTA5CE10;
rename ZCTA5CE10_char=ZCTA5CE10;
run;
proc MAPIMPORT datafile="/home/pandyad0/sasuser.v94/tl_2010_us_zcta510.shp" out=zshape;
run;
ods graphics on;
filename odsout '/home/pandyad0/sasuser.v94';
GOPTIONS DEVICE=png;
ODS HTML style=statistical path=odsout body="map3.html";
pattern1 v=s c=cx00ff00; 
pattern2 v=s c=cxffee00; 
pattern3 v=s c=cxffdc00;
pattern4 v=s c=cxff0000; 
proc gmap data=WORK.op2013V1 map=zshape; 
id ZCTA5CE10;
choro AverageTotalPayments / levels=4 coutline=same;
run;quit;
ODS HTML close;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;By the way, data was taken from this site--&amp;nbsp;&lt;A href="https://data.cms.gov/Medicare/Outpatient-Prospective-Payment-System-OPPS-Provide/ks44-5ax3" target="_blank"&gt;https://data.cms.gov/Medicare/Outpatient-Prospective-Payment-System-OPPS-Provide/ks44-5ax3&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 06:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/316464#M11084</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-12-03T06:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/316466#M11085</link>
      <description>&lt;P&gt;how do I set legend in range of values, from lowest to highest with various colors, like equal to &amp;nbsp;11 would be green. And hgihest would be red.&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6201i0A26AB5E2CE8F120/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="AverageTotalPayments.png" title="AverageTotalPayments.png" /&gt;&lt;/P&gt;&lt;P&gt;how to separate legend with set range from 11.84 to 400.00 = green, 400 to 800 yellow and 800 to 1400 = red.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 06:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/316466#M11085</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-12-03T06:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/316678#M11090</link>
      <description>&lt;P&gt;There are a few different ways to control the legend 'binning', but here is the one I would recommend for your situation. It gives you total control of the way the data is split into the legend bins, and how those bins are labeled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First you use a data step and 'if' statements to assign each data line to a legend bin, and then you create a user-defined format to specify how you want those legend bins to be labeled. In Proc Gmap, be sure to use the 'discrete' option!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a simple example demonstrating the technique:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data foo; set sashelp.us_data;&lt;BR /&gt;if population_2010&amp;lt;5000000 then legend_bin=1;&lt;BR /&gt;else if population_2010&amp;lt;=20000000 then legend_bin=2;&lt;BR /&gt;else if population_2010&amp;gt;20000000 then legend_bin=3;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt;value bin_fmt&lt;BR /&gt;1="&amp;lt;5 million"&lt;BR /&gt;2="5-20 million"&lt;BR /&gt;3="&amp;gt;20 million"&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pattern1 v=s c=lime;&lt;BR /&gt;pattern2 v=s c=orange;&lt;BR /&gt;pattern3 v=s c=red;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gmap data=foo map=maps.us all;&lt;BR /&gt;label legend_bin='Population:';&lt;BR /&gt;format legend_bin bin_fmt.;&lt;BR /&gt;id statecode;&lt;BR /&gt;choro legend_bin / discrete;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6217iAFC43B32CCA009CD/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="gmap.png" title="gmap.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/316678#M11090</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2016-12-05T13:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: health care costs out patient choropleth map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/321818#M11266</link>
      <description>Thank you Robert. This is indeed a very good example. I have another question about how I can fill gray color to the empty zip codes in the map above.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 31 Dec 2016 03:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/health-care-costs-out-patient-choropleth-map/m-p/321818#M11266</guid>
      <dc:creator>pandyat0</dc:creator>
      <dc:date>2016-12-31T03:02:54Z</dc:date>
    </item>
  </channel>
</rss>

