<?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 Change valut in dataset to missing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Change-valut-in-dataset-to-missing/m-p/702784#M215273</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a dataset with 7 individuals (ID)&amp;nbsp;and 2 households (FAM). In addition, I have two variables, Ink and Disp. Ink shows the individual's income while Disp shows the households' disposable income. Disp thus repeats itself. I want the variable disp to be kept for the first individual in the household and get a value missing for the rest of the individuals in the household. Below is the code that shows what I have and how I want it to be. thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; HAVE;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;INPUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ID&amp;nbsp;FAM INK DISP;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATALINES&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;1 1 50 60&lt;/P&gt;&lt;P&gt;2 1 100 60&lt;/P&gt;&lt;P&gt;3 1 200 60&lt;/P&gt;&lt;P&gt;4 2 500 250&lt;/P&gt;&lt;P&gt;5 2 700 250&lt;/P&gt;&lt;P&gt;6 2 0 250&lt;/P&gt;&lt;P&gt;7 2 0 250&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; WANT;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;INPUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ID FAM INK DISP;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATALINES&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;1 1 50 60&lt;/P&gt;&lt;P&gt;2 1 100 .&lt;/P&gt;&lt;P&gt;3 1 200 .&lt;/P&gt;&lt;P&gt;4 2 500 250&lt;/P&gt;&lt;P&gt;5 2 700 .&lt;/P&gt;&lt;P&gt;6 2 0 .&lt;/P&gt;&lt;P&gt;7 2 0 .&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 12:07:32 GMT</pubDate>
    <dc:creator>MCB1</dc:creator>
    <dc:date>2020-12-01T12:07:32Z</dc:date>
    <item>
      <title>Change valut in dataset to missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-valut-in-dataset-to-missing/m-p/702784#M215273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a dataset with 7 individuals (ID)&amp;nbsp;and 2 households (FAM). In addition, I have two variables, Ink and Disp. Ink shows the individual's income while Disp shows the households' disposable income. Disp thus repeats itself. I want the variable disp to be kept for the first individual in the household and get a value missing for the rest of the individuals in the household. Below is the code that shows what I have and how I want it to be. thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; HAVE;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;INPUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ID&amp;nbsp;FAM INK DISP;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATALINES&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;1 1 50 60&lt;/P&gt;&lt;P&gt;2 1 100 60&lt;/P&gt;&lt;P&gt;3 1 200 60&lt;/P&gt;&lt;P&gt;4 2 500 250&lt;/P&gt;&lt;P&gt;5 2 700 250&lt;/P&gt;&lt;P&gt;6 2 0 250&lt;/P&gt;&lt;P&gt;7 2 0 250&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; WANT;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;INPUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ID FAM INK DISP;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATALINES&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;1 1 50 60&lt;/P&gt;&lt;P&gt;2 1 100 .&lt;/P&gt;&lt;P&gt;3 1 200 .&lt;/P&gt;&lt;P&gt;4 2 500 250&lt;/P&gt;&lt;P&gt;5 2 700 .&lt;/P&gt;&lt;P&gt;6 2 0 .&lt;/P&gt;&lt;P&gt;7 2 0 .&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 12:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-valut-in-dataset-to-missing/m-p/702784#M215273</guid>
      <dc:creator>MCB1</dc:creator>
      <dc:date>2020-12-01T12:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change valut in dataset to missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-valut-in-dataset-to-missing/m-p/702785#M215274</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   set have;
   by fam;
   if not first.fam then disp = .;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Dec 2020 12:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-valut-in-dataset-to-missing/m-p/702785#M215274</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-12-01T12:10:26Z</dc:date>
    </item>
  </channel>
</rss>

