<?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 create a variable based on the middle character of a postal code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472214#M121042</link>
    <description>&lt;P&gt;Understood, and the assumption holds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only postal codes with a '0' in them are rural postal codes so that works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so in essence, if the program finds a 0 in the string then it sets rural to true (1) and urban to false (0) and vice versa?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 17:03:58 GMT</pubDate>
    <dc:creator>righcoastmike</dc:creator>
    <dc:date>2018-06-21T17:03:58Z</dc:date>
    <item>
      <title>How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472174#M121023</link>
      <description>&lt;P&gt;HI all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create new variables in my dataset indicating whether or not a person lives in in a rural or urban area. The way that urban/rural status is determined is&amp;nbsp;if the persons postal code has a '0' in the middle of it then it is a rural (eg. B0A), otherwise it is urban.&amp;nbsp; I could do it if it was the first character, however it's using the middle character that has got me stuck. Any thoughts would be much appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Existing Dataset&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input studyID postal_code $;
cards;
1 B0A
2 B2Y
3 F0N
4 B4T
5 M4T
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample output:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patient ID&amp;nbsp; &amp;nbsp;Postal Code&amp;nbsp; Urban&amp;nbsp; &amp;nbsp;Rural&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B0A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B2Y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F0N&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B4T&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; M4T&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472174#M121023</guid>
      <dc:creator>righcoastmike</dc:creator>
      <dc:date>2018-06-21T15:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472179#M121026</link>
      <description>&lt;P&gt;If the postalcode is &lt;STRONG&gt;always&lt;/STRONG&gt; 3 characters you can get the value with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;middle = substr(postal_code,2,1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the 2 means start reading at the second position and the 1 is read one character.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472179#M121026</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-21T15:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472181#M121028</link>
      <description>&lt;P&gt;SUBSTR() or CHAR() functions will allow you to access the individual characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154458"&gt;@righcoastmike&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;HI all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create new variables in my dataset indicating whether or not a person lives in in a rural or urban area. The way that urban/rural status is determined is&amp;nbsp;if the persons postal code has a '0' in the middle of it then it is a rural (eg. B0A), otherwise it is urban.&amp;nbsp; I could do it if it was the first character, however it's using the middle character that has got me stuck. Any thoughts would be much appreciated!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Existing Dataset&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input studyID postal_code $;
cards;
1 B0A
2 B2Y
3 F0N
4 B4T
5 M4T
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample output:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Patient ID&amp;nbsp; &amp;nbsp;Postal Code&amp;nbsp; Urban&amp;nbsp; &amp;nbsp;Rural&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B0A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B2Y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F0N&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B4T&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; M4T&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472181#M121028</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-21T15:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472183#M121030</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input studyID postal_code $;
cards;
1 B0A
2 B2Y
3 F0N
4 B4T
5 M4T
;

data want;
set have;
if index(postal_code,'0')=0 then do;urban=1;rural=0;end;
else if index(postal_code,'0')&amp;gt;0 then do;urban=0;rural=1;end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472183#M121030</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-21T15:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472189#M121032</link>
      <description>&lt;P&gt;Worked like a charm!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 16:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472189#M121032</guid>
      <dc:creator>righcoastmike</dc:creator>
      <dc:date>2018-06-21T16:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472191#M121034</link>
      <description>&lt;P&gt;Thanks so much for this, I was not familiar with the 'substr' command. I'm sure it will come in handy in the future!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 16:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472191#M121034</guid>
      <dc:creator>righcoastmike</dc:creator>
      <dc:date>2018-06-21T16:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472207#M121040</link>
      <description>&lt;P&gt;I had a quick question about this code. It works great, but it looks like it's doing the opposite of what I would expect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To me lit looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the middle character of the postal code&amp;nbsp; =0 then Urban=1 Rural=0&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the middle character of the postal code&amp;nbsp; &amp;gt; 0 then Urban=0 Rural=1&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which would have the 1's and zero's reversed, but for some reason the code get's everything in the right place. Can you explain what I'm missing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 16:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472207#M121040</guid>
      <dc:creator>righcoastmike</dc:creator>
      <dc:date>2018-06-21T16:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472210#M121041</link>
      <description>&lt;P&gt;The code doesn't even check for middle char =0 i'm afraid. if your first and second both happen to be&amp;nbsp; 0, then the code will fail. If that's the case I would have to tweak a bit, which is no big deal. I assumed your sample is a good representative of your real and went with a simple check of 0 in the string following with a true(1) and false(0) assignment for rural and urban.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, please review the test below:&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input studyID postal_code $;&lt;BR /&gt;cards;&lt;BR /&gt;1 B0A&lt;BR /&gt;2 02Y&lt;EM&gt;&lt;STRONG&gt; /*notice the change here I made to the sample*/&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;3 F0N&lt;BR /&gt;4 B4T&lt;BR /&gt;5 M4T&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;/*now ,please notice the result for ID 2*/&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;if index(postal_code,'0')=0 then do;urban=1;rural=0;end;&lt;BR /&gt;else if index(postal_code,'0')&amp;gt;0 then do;urban=0;rural=1;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 17:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472210#M121041</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-21T17:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472214#M121042</link>
      <description>&lt;P&gt;Understood, and the assumption holds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only postal codes with a '0' in them are rural postal codes so that works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so in essence, if the program finds a 0 in the string then it sets rural to true (1) and urban to false (0) and vice versa?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 17:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472214#M121042</guid>
      <dc:creator>righcoastmike</dc:creator>
      <dc:date>2018-06-21T17:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472215#M121043</link>
      <description>&lt;P&gt;Indeed Sir. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But please feel free to revert back should you need any changes. It's very simple program to make changes. No biggie.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only request to everybody is that please provide a good representative sample to avoid going back and forth ding dong lol&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 17:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472215#M121043</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-21T17:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a variable based on the middle character of a postal code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472282#M121079</link>
      <description>&lt;P&gt;For added fun consider:&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   urban= (index(postal_code,'0')=0) ;
   rural = not(urban);
run;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   rural= (substr(postal_code,2,1)='0') ;
   urban = not(rural);
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-variable-based-on-the-middle-character-of-a/m-p/472282#M121079</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-21T20:03:59Z</dc:date>
    </item>
  </channel>
</rss>

