<?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 keeping some values of the observations unchanged in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25772#M146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another quetion,&lt;/P&gt;&lt;P&gt;When I apply the format to the variables, it looks like they are stored as characher variable since they are all left justidied. I was wondering why is that the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2012 17:09:58 GMT</pubDate>
    <dc:creator>R_A_G_</dc:creator>
    <dc:date>2012-03-09T17:09:58Z</dc:date>
    <item>
      <title>keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25764#M138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dear SAS experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a large data set that needs to be recoded to binary, each item, obviously, have a different answer&lt;SPAN class="visitorName"&gt; &lt;/SPAN&gt;but all have the same value for OMITTED, NOT ADMINISTERED, and NOT REACHED. &lt;/P&gt;&lt;P&gt;Is there a way to recode but not have to do the same codes over and over for each item?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 18:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25764#M138</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-03-08T18:56:35Z</dc:date>
    </item>
    <item>
      <title>keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25765#M139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;binary?&amp;nbsp; That's just two values.&amp;nbsp; A true binary variable can't even have any representation for NULL or missing.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide an example with a couple of variables and their before and after values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 19:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25765#M139</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-03-08T19:47:52Z</dc:date>
    </item>
    <item>
      <title>keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25766#M140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since OP has not answered yet, my wild guess would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data _null_;&lt;/P&gt;&lt;P&gt; a='OMITTED';&lt;/P&gt;&lt;P&gt; put a $binary.;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 20:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25766#M140</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-03-08T20:00:33Z</dc:date>
    </item>
    <item>
      <title>keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25767#M141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;these are binary with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;missing: 99 or 9 changed to 9&lt;/LI&gt;&lt;LI&gt;not administered: 98 or 8 changed all to&amp;nbsp; 8&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;right now this is what I am doing, which is long for coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF M022043=4 THEN M022043=1; &lt;/P&gt;&lt;P&gt;else if M022043=8 then M022043=8;&lt;/P&gt;&lt;P&gt;else if M022043=98 then M022043=8;&lt;/P&gt;&lt;P&gt;else if M022043=99 then M022043=9;&lt;/P&gt;&lt;P&gt;else if M022043=9 then M022043=9;&lt;/P&gt;&lt;P&gt;ELSE M022043=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF M022046=10 or&amp;nbsp; M022046=19 THEN M022046=1; &lt;/P&gt;&lt;P&gt;else if M022046=8 then M022046=8;&lt;/P&gt;&lt;P&gt;else if M022046=98 then M022046=8;&lt;/P&gt;&lt;P&gt;else if M022046=99 then M022046=9;&lt;/P&gt;&lt;P&gt;else if M022046=9 then M022046=9;&lt;/P&gt;&lt;P&gt;ELSE M022046=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is an example of before and after. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 246px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="3" height="17" width="135"&gt;before&lt;/TD&gt;&lt;TD class="xl65" colspan="3" width="111"&gt;after&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;M0&lt;/TD&gt;&lt;TD&gt;M1&lt;/TD&gt;&lt;TD&gt;M02&lt;/TD&gt;&lt;TD&gt;M0&lt;/TD&gt;&lt;TD&gt;M1&lt;/TD&gt;&lt;TD&gt;M02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;99&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;9&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;99&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;9&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;71&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 20:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25767#M141</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-03-08T20:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25768#M142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something along the line of the code example below should do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;format&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; M0Recode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;4&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;98&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;9&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;99&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; otherwise=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; M1Recode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;19&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;98&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;9&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;99&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; otherwise=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; datalines &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue;"&gt;dsd&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; M0 M1 M02;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; M0_recoded=input(put(M0,&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: teal;"&gt;M0Recode.&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8.&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; M1_recoded=input(put(M1,&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: teal;"&gt;M1Recode.&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8.&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; M02_recoded=input(put(M02,&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: teal;"&gt;M0Recode.&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8.&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue;"&gt;datalines&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;1,10,2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;4,99,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;5,10,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;4,10,2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;4,10,3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;1,99,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;4,10,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;1,10,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;4,71,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;1,10,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;4,10,2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;5,10,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;4,10,2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;1,10,1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black;"&gt;4,10,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;print&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;=have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 20:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25768#M142</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-03-08T20:28:47Z</dc:date>
    </item>
    <item>
      <title>keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25769#M143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand the first part (shown below) but don't quit get the rest. Am I creating a new format and then putting it in a permanent data set? if yes how does the rest does that? Also, It seems like I have use other, rather than otherwise, is that correct?&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;format&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; M0Recode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;4&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;98&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;9&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;99&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; otherwise=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; M1Recode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;19&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;98&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;9&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;99&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; =&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; otherwise=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background-color: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 23:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25769#M143</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-03-08T23:24:11Z</dc:date>
    </item>
    <item>
      <title>keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25770#M144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are creating a new format, not it is not put in any permanent data set.&lt;/P&gt;&lt;P&gt;The example that Patrick gave stores the 1,8,9 or 0 value in the target recoded variable. If you have other variables to recode that have different values you wish to code to 1,8,9 and 0 follow the pattern in the examples.&lt;/P&gt;&lt;P&gt;Yes, should be OTHER instead of OTHERWISE in the value statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 23:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25770#M144</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-03-08T23:46:08Z</dc:date>
    </item>
    <item>
      <title>keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25771#M145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 00:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25771#M145</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-03-09T00:08:59Z</dc:date>
    </item>
    <item>
      <title>keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25772#M146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another quetion,&lt;/P&gt;&lt;P&gt;When I apply the format to the variables, it looks like they are stored as characher variable since they are all left justidied. I was wondering why is that the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 17:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25772#M146</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-03-09T17:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25773#M147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;M1_recoded=input(put(M1,&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: teal;"&gt;M1Recode.&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;STRONG style="background-color: white; font-family: 'Courier New'; color: teal;"&gt;8.&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;1. &lt;/SPAN&gt;&lt;STRONG style="background-color: white; font-family: 'Courier New'; color: navy;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="background-color: white; font-family: 'Courier New'; color: navy;"&gt;format&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; M0Recode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;Creates a numeric format and stores it in a macro catalog in the work library (default behaviour)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;For permanent storage of formats use: proc format lib=&amp;lt;permanent library&amp;gt;... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;Then add the catalog to the format searchpath (best in autoexec or configuration file) options &lt;/SPAN&gt;&lt;SPAN class="strong"&gt;FMTSEARCH=&lt;/SPAN&gt;(&lt;SPAN class="emph"&gt;catalog-specification-1... catalog-specification-n&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;2. &lt;/SPAN&gt;put(M1,&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: teal;"&gt;M1Recode.&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;Applies a numeric format to a numeric variable. The returned value of a put function writes always a string (character).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;3. &lt;/SPAN&gt;input(&amp;lt;return string from put()&amp;gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="background-color: white; font-family: 'Courier New'; color: teal;"&gt;8.&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;Reads a string, uses informat 8. to interprete this string, and returns a numeric value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;4. M1_recoded=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;The result of the input function (numeric value) gets assigned to M1_recoded. As input() returns an numeric value variable M1_recoded will be created as numeric variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;Running PROC CONTENS on your data set can show you how variables are defined:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;Proc Contents data=work.have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black;"&gt;Patrick&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 00:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25773#M147</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-03-10T00:46:23Z</dc:date>
    </item>
    <item>
      <title>keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25774#M148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is great. But would you please check my code for accuracy as well.&lt;/P&gt;&lt;P&gt;will these variables be still numeric?&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format LIBRARY=LIB;&lt;/P&gt;&lt;P&gt;value R4C&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1 =1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 8,98 =8&lt;/P&gt;&lt;P&gt;&amp;nbsp; 9,99 =9&lt;/P&gt;&lt;P&gt;&amp;nbsp; other=0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;value R2C&lt;/P&gt;&lt;P&gt;2=1&lt;/P&gt;&lt;P&gt;8,98 =8&lt;/P&gt;&lt;P&gt;&amp;nbsp; 9,99 =9&lt;/P&gt;&lt;P&gt;&amp;nbsp; other=0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;LIBNAME LIB 'C:\Users\Roofia\Desktop\GA\DATA\SAS\sascontrol';&lt;/P&gt;&lt;P&gt;OPTIONS FMTSEARCH=(LIB);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;dATA LIB.SUBSET_BK5_6try;&lt;/P&gt;&lt;P&gt;SET LIB.GRADE8A ;&lt;/P&gt;&lt;P&gt;format M022043 R4C. M022049 R2C.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 02:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25774#M148</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-03-10T02:33:44Z</dc:date>
    </item>
    <item>
      <title>keeping some values of the observations unchanged</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25775#M149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-&amp;nbsp; You should define your libname statement before you use it. I also would use some other name for the libref than LIB (which is a keyword).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIBNAME LIB 'c:\temp';&lt;/P&gt;&lt;P&gt;proc format LIBRARY=LIB;&lt;BR /&gt;value R4C&lt;BR /&gt;1 =1&lt;BR /&gt;8,98 =8&lt;BR /&gt;9,99 =9&lt;BR /&gt;other=0&lt;BR /&gt;;&lt;BR /&gt;value R2C&lt;BR /&gt;2=1&lt;BR /&gt;8,98 =8&lt;BR /&gt;9,99 =9&lt;BR /&gt;other=0&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; You don't need a 'run;' statement after a SAS global command. You should use 'append;' to not overwrite existing definitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS APPEND=(FMTSEARCH=LIB) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; Assigning a format to a variable doesn't change the value of the variable (no recoding). It only changes how the variable values will be printed. As a format statement doesn't create new variables, the variables will still be of the same type (numeric in your case). The format statement just changes the format attribute of these variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dATA LIB.SUBSET_BK5_6try;&lt;BR /&gt;&amp;nbsp; SET LIB.GRADE8A ;&lt;BR /&gt;&amp;nbsp; format M022043 R4C. M022049 R2C.;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 04:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/keeping-some-values-of-the-observations-unchanged/m-p/25775#M149</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-03-10T04:33:39Z</dc:date>
    </item>
  </channel>
</rss>

