<?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: Replacing date values displayed as 'E' in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Replacing-date-values-displayed-as-E/m-p/914432#M40928</link>
    <description>&lt;P&gt;If the value is special missing .E then it will DISPLAY as just an E.&lt;/P&gt;
&lt;P&gt;To enter a date constant you need to use a string that the DATE informat can understand.&amp;nbsp; It does not matter what display format you have attached to the variable that contains date values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you should use this code to change .E to 31DEC2023.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF ULINKENDDT = .E THEN ULINKENDDT = '31DEC2023'd ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Feb 2024 15:38:11 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-02-04T15:38:11Z</dc:date>
    <item>
      <title>Replacing date values displayed as 'E'</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Replacing-date-values-displayed-as-E/m-p/914423#M40925</link>
      <description>&lt;P&gt;I have a date variable with the YYMMDDN8. format. However, some values are displayed as E. From the frequency table, I understand that these are the missing values. So I want to replace them with December 31, 2023.&amp;nbsp; This is how the data looks. I tried to replace Es, .s, it didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="merveayibogan_0-1707038919675.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93257iE9F35320A54160E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="merveayibogan_0-1707038919675.png" alt="merveayibogan_0-1707038919675.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;DATA Zeynep.ccmxpfadjusted;&lt;BR /&gt;SET Zeynep.ccmxpf_lnkused;&lt;BR /&gt;IF ULINKENDDT = .......... THEN ULINKENDDT =..........;&amp;nbsp;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should i proceed ? Many thanks&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 09:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Replacing-date-values-displayed-as-E/m-p/914423#M40925</guid>
      <dc:creator>merveayibogan</dc:creator>
      <dc:date>2024-02-04T09:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing date values displayed as 'E'</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Replacing-date-values-displayed-as-E/m-p/914426#M40926</link>
      <description>&lt;P&gt;The "E" is most probably caused by a setting of the MISSING system option. It only affects the&amp;nbsp;&lt;EM&gt;display&lt;/EM&gt;&amp;nbsp;of the value, in code it is always represented by a dot. So code it like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if ulinkenddt = . then ulinkenddt = '31dec2023'd;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ulinkenddt = coalesce(ulinkenddt,'31dec2023'd);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;as the COALESCE function will return the first non-missing argument.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 10:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Replacing-date-values-displayed-as-E/m-p/914426#M40926</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-02-04T10:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing date values displayed as 'E'</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Replacing-date-values-displayed-as-E/m-p/914430#M40927</link>
      <description>&lt;P&gt;The coalesce function would work, as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;suggested.&amp;nbsp; You could also write an IF/THEN statement as you suggested, along these lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF ULINKENDDT &amp;lt;= .Z THEN ULINKENDDT = '31dec2023'd; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Feb 2024 12:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Replacing-date-values-displayed-as-E/m-p/914430#M40927</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-02-04T12:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing date values displayed as 'E'</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Replacing-date-values-displayed-as-E/m-p/914432#M40928</link>
      <description>&lt;P&gt;If the value is special missing .E then it will DISPLAY as just an E.&lt;/P&gt;
&lt;P&gt;To enter a date constant you need to use a string that the DATE informat can understand.&amp;nbsp; It does not matter what display format you have attached to the variable that contains date values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you should use this code to change .E to 31DEC2023.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF ULINKENDDT = .E THEN ULINKENDDT = '31DEC2023'd ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 15:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Replacing-date-values-displayed-as-E/m-p/914432#M40928</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-02-04T15:38:11Z</dc:date>
    </item>
  </channel>
</rss>

