<?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: Can't find $glcan. format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576954#M163395</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200382"&gt;@fuhgidabowit&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick responses. I found the solution. I forgot to&amp;nbsp;specify the output statements to use the code:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;fmtsearch&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(sashelp.mapfmts);&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, now I run into the next issue that the gmap procedure tells me that my ID variables are of different data types. Here is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; maps;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; maps;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Country_Name=put(BOOK_COUNTERPARTYCOUNTRY,&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$isoa2lu.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ID=put(Country_Name,&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$glcsun.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;gmap&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=maps &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;map&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=maps.world;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;id&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; id;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;choro&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sum_ctry;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;my ID-variable is alphanumeric. What's the matter?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;KS&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc contents results for maps.world:&lt;/P&gt;
&lt;PRE&gt;           Alphabetic List of Variables and Attributes

#    Variable    Type    Len    Label

1    CONT        Num       5    Numeric rep. for Continent
4    DENSITY     Num       5    Levels for Reducing
2    ID          Num       5    GLC: Country ID Number
7    LAT         Num       8    Unprojected Latitude in Radians
8    LONG        Num       8    Unprojected Longitude in Radians
3    SEGMENT     Num       5    Country Segment Number
5    X           Num       8    Projected Longitude: Cylindri
6    Y           Num       8    Projected Latitude: Cylindri

&lt;/PRE&gt;
&lt;P&gt;clearly shows that ID is numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PUT statement that creates ID in your MAPS data set creates a character variable. Hence the mismatch.&lt;/P&gt;
&lt;P&gt;perhaps&lt;/P&gt;
&lt;PRE&gt;data maps;
   set maps;
   Country_Name=put(BOOK_COUNTERPARTYCOUNTRY,$isoa2lu.);
   ID=input ( put(Country_Name,$glcsun. -L), 5.);
run;
&lt;/PRE&gt;
&lt;P&gt;to create a numeric ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2019 15:53:00 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-07-26T15:53:00Z</dc:date>
    <item>
      <title>Can't find $glcan. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576915#M163376</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to convert ISO-alpha-2 codes to GLC-codes in order to use the gmap procedure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;data maps;&lt;/P&gt;&lt;P&gt;set maps;&lt;/P&gt;&lt;P&gt;GLC=put(BOOK_COUNTERPARTYCOUNTRY,$glcan.);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I get an error that the format glcan. was not found. Any idea what could be the cause?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 14:32:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576915#M163376</guid>
      <dc:creator>fuhgidabowit</dc:creator>
      <dc:date>2019-07-26T14:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find $glcan. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576919#M163378</link>
      <description>&lt;P&gt;Before you run this code, format $glcan. must be defined in your SAS code. Or it must be in your format library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 14:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576919#M163378</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-26T14:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find $glcan. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576920#M163379</link>
      <description>&lt;P&gt;Which type is variable&amp;nbsp;&lt;SPAN&gt;BOOK_COUNTERPARTYCOUNTRY? If it is numeric, SAS will automatically look for a numeric format.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 14:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576920#M163379</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-26T14:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find $glcan. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576934#M163386</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick responses. I found the solution. I forgot to&amp;nbsp;specify the output statements to use the code:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;fmtsearch&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(sashelp.mapfmts);&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now I run into the next issue that the gmap procedure tells me that my ID variables are of different data types. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; maps;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; maps;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Country_Name=put(BOOK_COUNTERPARTYCOUNTRY,&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$isoa2lu.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ID=put(Country_Name,&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$glcsun.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;gmap&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=maps &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;map&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=maps.world;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;id&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; id;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;choro&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sum_ctry;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;my ID-variable is alphanumeric. What's the matter?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;KS&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576934#M163386</guid>
      <dc:creator>fuhgidabowit</dc:creator>
      <dc:date>2019-07-26T15:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find $glcan. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576936#M163387</link>
      <description>&lt;P&gt;If Country_Name is alphanumeric, you want to use INPUT instead of PUT.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576936#M163387</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-26T15:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find $glcan. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576941#M163391</link>
      <description>&lt;P&gt;I get the error message only when I use the gmap procedure, so its related to the ID variable, I guess.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576941#M163391</guid>
      <dc:creator>fuhgidabowit</dc:creator>
      <dc:date>2019-07-26T15:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find $glcan. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576943#M163392</link>
      <description>&lt;P&gt;Show us the LOG, not just the error messages but also the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please paste the log into the window that appears when you click on the {i} icon. Do not show us the log any other way.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576943#M163392</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-26T15:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find $glcan. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576954#M163395</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200382"&gt;@fuhgidabowit&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick responses. I found the solution. I forgot to&amp;nbsp;specify the output statements to use the code:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;fmtsearch&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(sashelp.mapfmts);&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, now I run into the next issue that the gmap procedure tells me that my ID variables are of different data types. Here is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; maps;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; maps;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Country_Name=put(BOOK_COUNTERPARTYCOUNTRY,&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$isoa2lu.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ID=put(Country_Name,&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$glcsun.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;gmap&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=maps &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;map&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=maps.world;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;id&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; id;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;choro&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sum_ctry;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;my ID-variable is alphanumeric. What's the matter?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;KS&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc contents results for maps.world:&lt;/P&gt;
&lt;PRE&gt;           Alphabetic List of Variables and Attributes

#    Variable    Type    Len    Label

1    CONT        Num       5    Numeric rep. for Continent
4    DENSITY     Num       5    Levels for Reducing
2    ID          Num       5    GLC: Country ID Number
7    LAT         Num       8    Unprojected Latitude in Radians
8    LONG        Num       8    Unprojected Longitude in Radians
3    SEGMENT     Num       5    Country Segment Number
5    X           Num       8    Projected Longitude: Cylindri
6    Y           Num       8    Projected Latitude: Cylindri

&lt;/PRE&gt;
&lt;P&gt;clearly shows that ID is numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PUT statement that creates ID in your MAPS data set creates a character variable. Hence the mismatch.&lt;/P&gt;
&lt;P&gt;perhaps&lt;/P&gt;
&lt;PRE&gt;data maps;
   set maps;
   Country_Name=put(BOOK_COUNTERPARTYCOUNTRY,$isoa2lu.);
   ID=input ( put(Country_Name,$glcsun. -L), 5.);
run;
&lt;/PRE&gt;
&lt;P&gt;to create a numeric ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/576954#M163395</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-26T15:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find $glcan. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/577307#M163592</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that seems to work. However there are few issues which I had to correct manually:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- the format of some countries like Bosnia,Russia or Taiwan for some reason is not converted from ALPHA2-Codes to GLC-Codes&lt;/P&gt;&lt;P&gt;- Hong-Kong does not exist in the SAS-Names list as an own country ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 09:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/577307#M163592</guid>
      <dc:creator>fuhgidabowit</dc:creator>
      <dc:date>2019-07-29T09:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find $glcan. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/578134#M163923</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200382"&gt;@fuhgidabowit&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that seems to work. However there are few issues which I had to correct manually:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- the format of some countries like Bosnia,Russia or Taiwan for some reason is not converted from ALPHA2-Codes to GLC-Codes&lt;/P&gt;
&lt;P&gt;- Hong-Kong does not exist in the SAS-Names list as an own country ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KS&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Check the data sets actual values and there are some "political" issues involved that you may need to address. The PRC claims that Taiwan is not a separate country but part of China so some folks take steps not to aggravate China, Or may have a different name used than Taiwan. Note that the SAS Maps.Names set has Taiwan in "Overseas Territories, Dependent Areas, &lt;STRONG&gt;Disputed Territories&lt;/STRONG&gt;". Similarly Bosnia and Russia may be listed under other names dependent on source.&lt;/P&gt;
&lt;P&gt;And the status of Hong Kong is also a tad ambiguous as to "country" status.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 16:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-find-glcan-format/m-p/578134#M163923</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-31T16:19:02Z</dc:date>
    </item>
  </channel>
</rss>

