<?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: How do I find missing demographics in SAS from an Excel Spreadsheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-missing-demographics-in-SAS-from-an-Excel/m-p/452803#M283969</link>
    <description>&lt;P&gt;Import the data into SAS.&lt;/P&gt;
&lt;P&gt;Write a datastep with som if statements to fill in the missing values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cannot provide anything further, you will need to help us by providing some things:&lt;/P&gt;
&lt;P&gt;Test data in the form of a datastep - Excel is useless and dangerous.&amp;nbsp; Post a datastep with some test data, you can follow this post when its in SAS:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Then from that test data show us what you would want out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To import you have various options such as proc import.&lt;/P&gt;
&lt;P&gt;To do ifs you can do something like:&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  if emails="" then emails="default text";
run;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Apr 2018 13:19:43 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-04-10T13:19:43Z</dc:date>
    <item>
      <title>How do I find missing demographics in SAS from an Excel Spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-missing-demographics-in-SAS-from-an-Excel/m-p/452796#M283968</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of respondents (in Excel)&amp;nbsp;that have missing data for postcode, emails, student numbers to name a few demographics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What code do I need to use in SAS in order to fill in these missing columns of data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached an example of the data I will be using/the columns of data that are missing and need filling in.&lt;/P&gt;&lt;P&gt;I am using SAS&amp;nbsp;Enterprise Guide 7.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help on this would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zain&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-missing-demographics-in-SAS-from-an-Excel/m-p/452796#M283968</guid>
      <dc:creator>ZainAbbas</dc:creator>
      <dc:date>2018-04-10T13:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find missing demographics in SAS from an Excel Spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-missing-demographics-in-SAS-from-an-Excel/m-p/452803#M283969</link>
      <description>&lt;P&gt;Import the data into SAS.&lt;/P&gt;
&lt;P&gt;Write a datastep with som if statements to fill in the missing values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cannot provide anything further, you will need to help us by providing some things:&lt;/P&gt;
&lt;P&gt;Test data in the form of a datastep - Excel is useless and dangerous.&amp;nbsp; Post a datastep with some test data, you can follow this post when its in SAS:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Then from that test data show us what you would want out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To import you have various options such as proc import.&lt;/P&gt;
&lt;P&gt;To do ifs you can do something like:&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  if emails="" then emails="default text";
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-missing-demographics-in-SAS-from-an-Excel/m-p/452803#M283969</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-10T13:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find missing demographics in SAS from an Excel Spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-missing-demographics-in-SAS-from-an-Excel/m-p/452804#M283970</link>
      <description>&lt;P&gt;It depends how you want to fill those missing values. Do you have another table from where you want to do a look up and then fill the missing values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you check UPDATE statement in Data step&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000202975.htm" target="_self"&gt;Update Statement in Data Step&lt;/A&gt;&amp;nbsp;and also PROC SQL for updates&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/63043/HTML/default/viewer.htm#n1hz0uhw57yye2n16m5r103jjpjj.htm" target="_self"&gt;Update Data using Proc SQL&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-find-missing-demographics-in-SAS-from-an-Excel/m-p/452804#M283970</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-04-10T13:20:07Z</dc:date>
    </item>
  </channel>
</rss>

