<?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 How to replace observations conditionally in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-observations-conditionally/m-p/566744#M159340</link>
    <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to change(replace) values in sashelp.class for weight/height/age variables. this is just for understanding the concept. Suppose this our data :&lt;/P&gt;&lt;P&gt;Obs Name Sex Age Height Weight&lt;/P&gt;&lt;P&gt;1 Alfred M 14 69.0 112.5&lt;BR /&gt;2 Alice F 13 56.5 84.0&lt;BR /&gt;3 Barbara F 13 65.3 98.0&lt;BR /&gt;4 Carol F 14 62.8 102.5&lt;BR /&gt;5 Henry M 14 63.5 102.5&lt;BR /&gt;6 James M 12 57.3 83.0&lt;BR /&gt;7 Jane F 12 59.8 84.5&lt;BR /&gt;8 Janet F 15 62.5 112.5&lt;BR /&gt;9 Jeffrey M 13 62.5 84.0&lt;BR /&gt;10 John M 12 59.0 99.5&lt;BR /&gt;11 Joyce F 11 51.3 50.5&lt;BR /&gt;12 Judy F 14 64.3 90.0&lt;BR /&gt;13 Louise F 12 56.3 77.0&lt;BR /&gt;14 Mary F 15 66.5 112.0&lt;BR /&gt;15 Philip M 16 72.0 150.0&lt;BR /&gt;16 Robert M 12 64.8 128.0&lt;BR /&gt;17 Ronald M 15 67.0 133.0&lt;BR /&gt;18 Thomas M 11 57.5 85.0&lt;BR /&gt;19 William M 15 66.5 112.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am willing to change weight variable values to 9999 if the observation is between 120 - 150. Thanks for the help!&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2019 22:46:00 GMT</pubDate>
    <dc:creator>shanky_44</dc:creator>
    <dc:date>2019-06-17T22:46:00Z</dc:date>
    <item>
      <title>How to replace observations conditionally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-observations-conditionally/m-p/566744#M159340</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to change(replace) values in sashelp.class for weight/height/age variables. this is just for understanding the concept. Suppose this our data :&lt;/P&gt;&lt;P&gt;Obs Name Sex Age Height Weight&lt;/P&gt;&lt;P&gt;1 Alfred M 14 69.0 112.5&lt;BR /&gt;2 Alice F 13 56.5 84.0&lt;BR /&gt;3 Barbara F 13 65.3 98.0&lt;BR /&gt;4 Carol F 14 62.8 102.5&lt;BR /&gt;5 Henry M 14 63.5 102.5&lt;BR /&gt;6 James M 12 57.3 83.0&lt;BR /&gt;7 Jane F 12 59.8 84.5&lt;BR /&gt;8 Janet F 15 62.5 112.5&lt;BR /&gt;9 Jeffrey M 13 62.5 84.0&lt;BR /&gt;10 John M 12 59.0 99.5&lt;BR /&gt;11 Joyce F 11 51.3 50.5&lt;BR /&gt;12 Judy F 14 64.3 90.0&lt;BR /&gt;13 Louise F 12 56.3 77.0&lt;BR /&gt;14 Mary F 15 66.5 112.0&lt;BR /&gt;15 Philip M 16 72.0 150.0&lt;BR /&gt;16 Robert M 12 64.8 128.0&lt;BR /&gt;17 Ronald M 15 67.0 133.0&lt;BR /&gt;18 Thomas M 11 57.5 85.0&lt;BR /&gt;19 William M 15 66.5 112.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am willing to change weight variable values to 9999 if the observation is between 120 - 150. Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 22:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-observations-conditionally/m-p/566744#M159340</guid>
      <dc:creator>shanky_44</dc:creator>
      <dc:date>2019-06-17T22:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace observations conditionally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-observations-conditionally/m-p/566745#M159341</link>
      <description>&lt;P&gt;data new;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set help.class;&lt;/P&gt;&lt;P&gt;if 120 &amp;lt;= weight &amp;lt;= 150 then weight = 9999;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 22:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-observations-conditionally/m-p/566745#M159341</guid>
      <dc:creator>ehmsoleil</dc:creator>
      <dc:date>2019-06-17T22:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace observations conditionally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-observations-conditionally/m-p/566749#M159345</link>
      <description>&lt;P&gt;Thanks, it is working fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 23:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-observations-conditionally/m-p/566749#M159345</guid>
      <dc:creator>shanky_44</dc:creator>
      <dc:date>2019-06-17T23:08:37Z</dc:date>
    </item>
  </channel>
</rss>

