<?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, modify a variable, where it contains lots of missing values, in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284114#M57959</link>
    <description>&lt;P&gt;thank you, but how to identify those missing values, I need to identy those as well, how to create a variable and give a vlue for those with missing values&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2016 16:36:02 GMT</pubDate>
    <dc:creator>Bal23</dc:creator>
    <dc:date>2016-07-13T16:36:02Z</dc:date>
    <item>
      <title>how to create a variable, modify a variable, where it contains lots of missing values,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284099#M57951</link>
      <description>&lt;P&gt;where it contains lots of missing values, say 98% of obs have missing values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;whether i use&lt;/P&gt;
&lt;P&gt;if var1 NE . then var2 ="M";&lt;/P&gt;
&lt;P&gt;or if var1 ne "." then var2 ="M"&lt;/P&gt;
&lt;P&gt;it does not work, i do see lots of missing values, but just cannot create var2&lt;/P&gt;
&lt;P&gt;any advice?&lt;/P&gt;
&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 15:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284099#M57951</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-07-13T15:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a variable, modify a variable, where it contains lots of missing values,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284106#M57954</link>
      <description>&lt;P&gt;Missing for character values is not "."&lt;/P&gt;
&lt;P&gt;It would be easier to use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if not missing(var1) then var2='M';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as the Missing function will use the correct comparison for numeric or character as needed.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 16:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284106#M57954</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-13T16:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a variable, modify a variable, where it contains lots of missing values,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284114#M57959</link>
      <description>&lt;P&gt;thank you, but how to identify those missing values, I need to identy those as well, how to create a variable and give a vlue for those with missing values&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 16:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284114#M57959</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-07-13T16:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a variable, modify a variable, where it contains lots of missing values,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284134#M57962</link>
      <description>&lt;P&gt;If missing(var1) then var2='whateveryouwantto assign';&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 17:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284134#M57962</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-13T17:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a variable, modify a variable, where it contains lots of missing values,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284172#M57970</link>
      <description>&lt;P&gt;Are your variables character or numeric? Are they all the same type?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post an example of what your data looks like and what you want as an output.&lt;/P&gt;
&lt;P&gt;I think you want an array, assign the variables to the array and then loop through and create variables that flag if they're missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what isyour end goal with flagging these as missing? There may be another way to get it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 19:04:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-variable-modify-a-variable-where-it-contains/m-p/284172#M57970</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-13T19:04:16Z</dc:date>
    </item>
  </channel>
</rss>

