<?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: Rename Missing Value in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Rename-Missing-Value/m-p/217745#M16382</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>Wed, 08 Apr 2015 21:20:02 GMT</pubDate>
    <dc:creator>sdang</dc:creator>
    <dc:date>2015-04-08T21:20:02Z</dc:date>
    <item>
      <title>Rename Missing Value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Rename-Missing-Value/m-p/217743#M16380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I join Table1 and Table2 by Zipcodes, not all of zips in Table1 will be available in Table2.&amp;nbsp; Therefore E.G will show the not-matching zip codes as blank.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="128" style="border: 1px solid rgb(0, 0, 0); width: 208px; height: 130px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Table1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Table2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ZipCodes&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ZipCodes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;MarketingZones&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;So any zips from Table2 does not match with Table1, I will get a blank cell under the column MarketingZones.&amp;nbsp; How do I rename the blank cell as "Other" or "Missing"?&lt;/P&gt;&lt;P&gt;See below for sample output.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image" src="https://communities.sas.com/legacyfs/online/9943_Capture.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 18:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Rename-Missing-Value/m-p/217743#M16380</guid>
      <dc:creator>sdang</dc:creator>
      <dc:date>2015-04-08T18:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Missing Value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Rename-Missing-Value/m-p/217744#M16381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to accomplish would be to create a SAS Format to format missing values with labels, then apply that format to the column.&amp;nbsp; For example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In EG, click Tasks-&amp;gt;Data-&amp;gt;Create Format to start the Create Format task (or you can just submit the code below, similar to what the task will generate)&lt;/LI&gt;&lt;LI&gt;Give the format a name (ex. "MissingLabelFmt")&lt;/LI&gt;&lt;LI&gt;Check &lt;STRONG&gt;Specify format width&lt;/STRONG&gt; and give it a reasonable width (ex. 12)&lt;/LI&gt;&lt;LI&gt;On the Define Formats page, click &lt;STRONG&gt;New&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Specify your desired label (ex. "Other" or "Missing")&lt;/LI&gt;&lt;LI&gt;In the Range definition area, select &lt;STRONG&gt;Missing values&lt;/STRONG&gt; in the Values dropdown&lt;/LI&gt;&lt;LI&gt;Run the task&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: By default, the Create Format task creates formats in the temporary WORK library.&amp;nbsp; If you want a permanent format, save to a permanent format catalog (specify in the task or code). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(The task will create code similar to the following, which you could just manually submit:&lt;/P&gt;&lt;P&gt;PROC FORMAT LIB=WORK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; VALUE $MissingLabelFmt (DEFAULT=12)&lt;/P&gt;&lt;P&gt;&amp;nbsp; " " = "Other";&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;After creating the user-defined format, apply it to your column...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the EG Query Builder (where you did the join), on the &lt;STRONG&gt;Select Data&lt;/STRONG&gt; tab, double-click the MarketingZone variable&lt;/LI&gt;&lt;LI&gt;Click the &lt;STRONG&gt;Change&lt;/STRONG&gt; button next to the Format field&lt;/LI&gt;&lt;LI&gt;Click the User Defined category and select the format you defined (ex. $MISSINGLABELFMT.)&lt;/LI&gt;&lt;LI&gt;Click Ok, Ok, then Run&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/9954_table.png" /&gt;&lt;/P&gt;&lt;P&gt;Note: Using a SAS format only affects how the values are displayed.&amp;nbsp; It does not alter the actual stored value (missing value in this case).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 20:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Rename-Missing-Value/m-p/217744#M16381</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2015-04-08T20:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Missing Value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Rename-Missing-Value/m-p/217745#M16382</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>Wed, 08 Apr 2015 21:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Rename-Missing-Value/m-p/217745#M16382</guid>
      <dc:creator>sdang</dc:creator>
      <dc:date>2015-04-08T21:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Missing Value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Rename-Missing-Value/m-p/217746#M16383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You solved my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 21:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Rename-Missing-Value/m-p/217746#M16383</guid>
      <dc:creator>sdang</dc:creator>
      <dc:date>2015-04-08T21:31:40Z</dc:date>
    </item>
  </channel>
</rss>

