<?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: SAS MANIPULATING MISSING DATA in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334148#M1892</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hm, I tried creating a new data set (new2) and coding that way. I'm not sure what I am doing wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code.... I am trying to recode all the -99 into . so that it does not count as my data and SAS will consitute it as missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;q1a = variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data new2; set new;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if q1a&amp;lt;0 THEN q1a=.; run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~ SASbeginner&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Feb 2017 00:27:24 GMT</pubDate>
    <dc:creator>fabdi</dc:creator>
    <dc:date>2017-02-19T00:27:24Z</dc:date>
    <item>
      <title>SAS MANIPULATING MISSING DATA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/333683#M1886</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to manipulate the dataset in SAS. I'd like to change my numerical values such as 5 to a . (period) to represent the missing data so it won't count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am not sure how to go about it. Please help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 06:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/333683#M1886</guid>
      <dc:creator>fabdi</dc:creator>
      <dc:date>2017-02-17T06:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MANIPULATING MISSING DATA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/333691#M1887</link>
      <description>Hi, there are many ways to do this.&lt;BR /&gt;Such as using if/else statement, proc format or ifn.&lt;BR /&gt;HTH.</description>
      <pubDate>Fri, 17 Feb 2017 07:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/333691#M1887</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2017-02-17T07:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MANIPULATING MISSING DATA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/333693#M1888</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data more_vars_and_people;
input x y z;
cards;
12 5 9
1 5 30
7 5 20
8 2 3
;
run;


DATA more_vars_and_people;
modify more_vars_and_people;
if y=5 then y=.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is an example..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 07:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/333693#M1888</guid>
      <dc:creator>ankit___gupta</dc:creator>
      <dc:date>2017-02-17T07:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MANIPULATING MISSING DATA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334148#M1892</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hm, I tried creating a new data set (new2) and coding that way. I'm not sure what I am doing wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code.... I am trying to recode all the -99 into . so that it does not count as my data and SAS will consitute it as missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;q1a = variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data new2; set new;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if q1a&amp;lt;0 THEN q1a=.; run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~ SASbeginner&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2017 00:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334148#M1892</guid>
      <dc:creator>fabdi</dc:creator>
      <dc:date>2017-02-19T00:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MANIPULATING MISSING DATA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334157#M1893</link>
      <description>Hi, did you want to recode q1a=. when q1a=5 and q1a=-99?&lt;BR /&gt;if so, the if statement should be: if q1a in (-99,5) then q1a=.;</description>
      <pubDate>Sun, 19 Feb 2017 03:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334157#M1893</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2017-02-19T03:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MANIPULATING MISSING DATA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334161#M1894</link>
      <description>&lt;P&gt;Thank you for the response!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to recode just -99 to .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This what I am inputting:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;data new2; set new;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;if q1a=-99 THEN q1a=.; run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;I'm still seeing -99 counted in my data. I'm not sure what the problem is. &amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 Feb 2017 04:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334161#M1894</guid>
      <dc:creator>fabdi</dc:creator>
      <dc:date>2017-02-19T04:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MANIPULATING MISSING DATA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334164#M1895</link>
      <description>&lt;P&gt;Hi, what does the log say?&lt;/P&gt;&lt;P&gt;The sample code below correctly recoded either numeric or character variables to missing&amp;nbsp;from -99.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test; 
	numeric=-99; 
	char='-99'; 
	if numeric=-99 then numeric=.; 
	if char='-99' then char=''; 
run;
proc print noobs; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Feb 2017 04:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334164#M1895</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2017-02-19T04:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MANIPULATING MISSING DATA</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334322#M1904</link>
      <description>&lt;P&gt;Hi&amp;nbsp;fabdi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is nothing worng with the code as such. The only concern i have is the part where u mention.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"q1a = variable ". Can you elaborate on this part.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;else everthing is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank You.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 13:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-MANIPULATING-MISSING-DATA/m-p/334322#M1904</guid>
      <dc:creator>ankit___gupta</dc:creator>
      <dc:date>2017-02-20T13:10:49Z</dc:date>
    </item>
  </channel>
</rss>

