<?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: How to read the country name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-the-country-name/m-p/716040#M221231</link>
    <description>&lt;P&gt;You need to indicate that the maximum number of characters in country is 15.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you would make your life so much easier if you put a delimiter between country and code. Right now, because the space is the delimiter, there's really not a good way to know that "united" (which is separated by a space from) "kingdom" should be read as "united kingdom". Your program will decide that "united" is the country and "kingdom" is the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if you use a delimiter which is TWO spaces from the end of the country name, then you have data that is more easily read. Note the two spaces in the data between the last letter of country and the first letter of code. (Other delimiters could be chosen as well)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data country;
input country &amp;amp; $15. code $;
datalines;
Astria  EUR 
BELGIUM  EUR
CZECH_REPUBLIC  EUR
united Kingdom  GBP
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 12:33:06 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-02-02T12:33:06Z</dc:date>
    <item>
      <title>How to read the country name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-the-country-name/m-p/716037#M221230</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance. I want to read the country name using following code, but unable to read the third and forth record properly observation properly it&amp;nbsp; just read the&amp;nbsp;CZECH RE not a full name of country, Please help me to read the observation correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data country;&lt;BR /&gt;input country $ code $;&lt;BR /&gt;datalines;&lt;BR /&gt;Astria EUR&amp;nbsp;&lt;BR /&gt;BELGIUM EUR&lt;BR /&gt;CZECH_REPUBLIC EUR&lt;/P&gt;&lt;P&gt;united Kingdom GBP&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me to read the data properly using datalines.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-the-country-name/m-p/716037#M221230</guid>
      <dc:creator>hema_bhure</dc:creator>
      <dc:date>2021-02-02T12:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to read the country name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-the-country-name/m-p/716040#M221231</link>
      <description>&lt;P&gt;You need to indicate that the maximum number of characters in country is 15.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you would make your life so much easier if you put a delimiter between country and code. Right now, because the space is the delimiter, there's really not a good way to know that "united" (which is separated by a space from) "kingdom" should be read as "united kingdom". Your program will decide that "united" is the country and "kingdom" is the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if you use a delimiter which is TWO spaces from the end of the country name, then you have data that is more easily read. Note the two spaces in the data between the last letter of country and the first letter of code. (Other delimiters could be chosen as well)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data country;
input country &amp;amp; $15. code $;
datalines;
Astria  EUR 
BELGIUM  EUR
CZECH_REPUBLIC  EUR
united Kingdom  GBP
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-the-country-name/m-p/716040#M221231</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-02T12:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to read the country name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-the-country-name/m-p/716052#M221237</link>
      <description>thank you everyone, I am able to read it successfully</description>
      <pubDate>Tue, 02 Feb 2021 12:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-the-country-name/m-p/716052#M221237</guid>
      <dc:creator>hema_bhure</dc:creator>
      <dc:date>2021-02-02T12:51:26Z</dc:date>
    </item>
  </channel>
</rss>

