<?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 missing values from other variable ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-missing-values-from-other-variable/m-p/849726#M335897</link>
    <description>&lt;P&gt;Hi Sas Users,&lt;/P&gt;&lt;P&gt;I need a quick advice.&lt;/P&gt;&lt;P&gt;How should I use the SAS code to replace the value of gender2 to gender variable if the information in gender variable is missing.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;PRE&gt;data have;
format id $1. gender $1. gender2 $1.;
input @1 ID
@ 3 GENDER
@ 6 GENDER2;
DATALINES;
1 f .
2 . m
3 m .
4 . f
;
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Dec 2022 19:59:10 GMT</pubDate>
    <dc:creator>chimei0403</dc:creator>
    <dc:date>2022-12-14T19:59:10Z</dc:date>
    <item>
      <title>How to replace missing values from other variable ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-missing-values-from-other-variable/m-p/849726#M335897</link>
      <description>&lt;P&gt;Hi Sas Users,&lt;/P&gt;&lt;P&gt;I need a quick advice.&lt;/P&gt;&lt;P&gt;How should I use the SAS code to replace the value of gender2 to gender variable if the information in gender variable is missing.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;PRE&gt;data have;
format id $1. gender $1. gender2 $1.;
input @1 ID
@ 3 GENDER
@ 6 GENDER2;
DATALINES;
1 f .
2 . m
3 m .
4 . f
;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Dec 2022 19:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-missing-values-from-other-variable/m-p/849726#M335897</guid>
      <dc:creator>chimei0403</dc:creator>
      <dc:date>2022-12-14T19:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace missing values from other variable ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-missing-values-from-other-variable/m-p/849727#M335898</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    gender=coalescec(gender,gender2);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Dec 2022 20:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-missing-values-from-other-variable/m-p/849727#M335898</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-14T20:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace missing values from other variable ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-missing-values-from-other-variable/m-p/849730#M335901</link>
      <description>Thank you soooo much!!</description>
      <pubDate>Wed, 14 Dec 2022 20:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-missing-values-from-other-variable/m-p/849730#M335901</guid>
      <dc:creator>chimei0403</dc:creator>
      <dc:date>2022-12-14T20:02:54Z</dc:date>
    </item>
  </channel>
</rss>

