<?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 Strange behaviour in Enterprise Guide when using special missing values in SAS Community Nordic</title>
    <link>https://communities.sas.com/t5/SAS-Community-Nordic/Strange-behaviour-in-Enterprise-Guide-when-using-special-missing/m-p/537655#M226</link>
    <description>&lt;P&gt;When I use the datagrid view to look at a dataset on the server that contains special missing values like&amp;nbsp;".A" ".E" ".N" ".U" I experience some odd behaviour.&lt;/P&gt;&lt;P&gt;The special missing values are included in the format for the variable so that when I open the dataset in the grid view I don't see .N (or N). Instead I see [Not applicable].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I've got a formatted value in the datagrid I usually just double click the cell in order to view the unformatted value. However when I do this in a cell with a special missing value&amp;nbsp;[Not applicable] doesn't turn into .A, it turns into a regular missing-dot (.) instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And what's even more strange (and scary) is that the regular missing-dot is written to the server. If I do the above double click and a colleague opens a new session and views the same data, they see a regular missing-dot instead of [Not applicable] or .N (or N). The missing "flavour" seems to be lost forever...&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 13:08:26 GMT</pubDate>
    <dc:creator>andypandy_swe</dc:creator>
    <dc:date>2019-02-22T13:08:26Z</dc:date>
    <item>
      <title>Strange behaviour in Enterprise Guide when using special missing values</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Strange-behaviour-in-Enterprise-Guide-when-using-special-missing/m-p/537655#M226</link>
      <description>&lt;P&gt;When I use the datagrid view to look at a dataset on the server that contains special missing values like&amp;nbsp;".A" ".E" ".N" ".U" I experience some odd behaviour.&lt;/P&gt;&lt;P&gt;The special missing values are included in the format for the variable so that when I open the dataset in the grid view I don't see .N (or N). Instead I see [Not applicable].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I've got a formatted value in the datagrid I usually just double click the cell in order to view the unformatted value. However when I do this in a cell with a special missing value&amp;nbsp;[Not applicable] doesn't turn into .A, it turns into a regular missing-dot (.) instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And what's even more strange (and scary) is that the regular missing-dot is written to the server. If I do the above double click and a colleague opens a new session and views the same data, they see a regular missing-dot instead of [Not applicable] or .N (or N). The missing "flavour" seems to be lost forever...&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 13:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Strange-behaviour-in-Enterprise-Guide-when-using-special-missing/m-p/537655#M226</guid>
      <dc:creator>andypandy_swe</dc:creator>
      <dc:date>2019-02-22T13:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behaviour in Enterprise Guide when using special missing values</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Strange-behaviour-in-Enterprise-Guide-when-using-special-missing/m-p/537951#M228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/141876"&gt;@andypandy_swe&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some simple code and steps to reproduce greatly help investigation.&amp;nbsp; However, I was eventually able to reproduce the problem you described (though I didn't create the format, since not needed to reproduce the problem)...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I submitted the following code to create sample data similar to what you described:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydata;
missing A E N U;
input a;
datalines;
1
.A
3
.E
5
6
.N
.N
9
.U
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, as you described, the formatted values are displayed properly in the data grid.&amp;nbsp; However, if you go into table update mode and enter edit mode for a cell&amp;nbsp;(ex. double-click a cell) with a special missing value, the grid shows the raw value as an empty string.&amp;nbsp; If you press Enter or click elsewhere, you are committing that (empty) value back to the data source.&amp;nbsp; This results in EG storing the blank value as a regular missing value, thus the formatted value is a '.' (period) after you commit the value (by pressing Enter), as you can see in this animated gif:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="editingSpecialMissingValuesProblem.gif" style="width: 415px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27368iC040A084996E2463/image-size/large?v=v2&amp;amp;px=999" role="button" title="editingSpecialMissingValuesProblem.gif" alt="editingSpecialMissingValuesProblem.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The EG data grid does not currently support setting special missing values.&amp;nbsp; I will add this as a requirement to the EG data grid, since it should handle this better (and as you experienced, can too easily result in a data integrity issue).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, if you wish to simply view a raw value, press the Esc key (rather than the Enter key or clicking elsewhere) when you wish to leave edit mode for a cell, so the value is not committed back to the source (which I did in the last two edits on record 7 in the animated gif above, showing the special missing value is preserved).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 10:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Strange-behaviour-in-Enterprise-Guide-when-using-special-missing/m-p/537951#M228</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2019-02-23T10:56:46Z</dc:date>
    </item>
  </channel>
</rss>

