<?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 to change 0 in date to &amp;quot;.&amp;quot;? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-0-in-date-to-quot-quot/m-p/842158#M333002</link>
    <description>&lt;P&gt;Applying the MISSING= option does not change the values in your data set.&amp;nbsp; It changes the report only.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to change sales numbers, so that they have a minimum value of 0 when the data does not contain a value, change the SELECT logic.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;max(b.'2022_AEP_Sales'n, 0) as b.'2022_AEP_Sales'n,&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Most likely, you can then get rid of the MISSING= option.&amp;nbsp; But in no case will you see 01JAN1960 when the actual data value is a missing value.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 17:27:38 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2022-11-02T17:27:38Z</dc:date>
    <item>
      <title>How to change 0 in date to "."?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-0-in-date-to-quot-quot/m-p/842148#M332996</link>
      <description>&lt;P&gt;I am using "options missing =0" in my proc sql to account for blank data in my two Sales columns, however I want my dates to remiain "." or blank. so the date will not be replaced by 01/01/1960.&lt;/P&gt;
&lt;P&gt;Is this possible? How could I solve for this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMSSAS_0-1667408101174.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76876i5018F9CB2719CA23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LMSSAS_0-1667408101174.png" alt="LMSSAS_0-1667408101174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
options missing=0;
	create table Test_Sales as
		select distinct
			a.*, 
			b.'2022_AEP_Sales'n,
			b.'2021_Application Submit Date'n,
			c.'2023_AEP_Sales'n,
			c.'2022_Application Submit Date'n
			from SalesTable3 a
			left join Sales2022 b
			on a.AGENT_INDIVIDUAL_WRITING_NUMBER=b.AGENT_INDIVIDUAL_WRITING_NUMBER
			left join Sales2023 c
			on a.AGENT_INDIVIDUAL_WRITING_NUMBER=c.AGENT_INDIVIDUAL_WRITING_NUMBER
			group by a.AGENT_INDIVIDUAL_WRITING_NUMBER, b.'2021_Application Submit Date'n 
			;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Nov 2022 16:58:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-0-in-date-to-quot-quot/m-p/842148#M332996</guid>
      <dc:creator>LMSSAS</dc:creator>
      <dc:date>2022-11-02T16:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to change 0 in date to "."?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-0-in-date-to-quot-quot/m-p/842150#M332997</link>
      <description>&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;case when c.'2022_Application Submit Date'n&amp;gt;0 then c.'2022_Application Submit Date'n else . end as '2022_Application Submit Date'n&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Nov 2022 17:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-0-in-date-to-quot-quot/m-p/842150#M332997</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-02T17:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to change 0 in date to "."?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-0-in-date-to-quot-quot/m-p/842158#M333002</link>
      <description>&lt;P&gt;Applying the MISSING= option does not change the values in your data set.&amp;nbsp; It changes the report only.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to change sales numbers, so that they have a minimum value of 0 when the data does not contain a value, change the SELECT logic.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;max(b.'2022_AEP_Sales'n, 0) as b.'2022_AEP_Sales'n,&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Most likely, you can then get rid of the MISSING= option.&amp;nbsp; But in no case will you see 01JAN1960 when the actual data value is a missing value.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 17:27:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-0-in-date-to-quot-quot/m-p/842158#M333002</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-11-02T17:27:38Z</dc:date>
    </item>
  </channel>
</rss>

