<?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: unknown or missing value under string variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818571#M34664</link>
    <description>Hi,&lt;BR /&gt;Thanks for your kind response. Here is the data step:&lt;BR /&gt;data road_crash;&lt;BR /&gt;input crash_id $ bus_involvement$;&lt;BR /&gt;datalines;&lt;BR /&gt;20205093 Yes&lt;BR /&gt;20205008 No&lt;BR /&gt;20205050 -9&lt;BR /&gt;20201127 No&lt;BR /&gt;20202001 No&lt;BR /&gt;20207010 Yes&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;According to data sets, bus_involvement is string variable.&lt;BR /&gt;&lt;BR /&gt;Looking for your kind feedbacks.&lt;BR /&gt;</description>
    <pubDate>Thu, 16 Jun 2022 13:20:14 GMT</pubDate>
    <dc:creator>Uddin</dc:creator>
    <dc:date>2022-06-16T13:20:14Z</dc:date>
    <item>
      <title>unknown or missing value under string variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818546#M34659</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data set regarding road fatalities. Here is an example of my data set:&lt;/P&gt;&lt;P&gt;crash_id, bus_involvement&lt;/P&gt;&lt;P&gt;1, yes&lt;/P&gt;&lt;P&gt;2, no&lt;/P&gt;&lt;P&gt;3, -9&lt;/P&gt;&lt;P&gt;4, no&lt;/P&gt;&lt;P&gt;5, no&lt;/P&gt;&lt;P&gt;6, yes&lt;/P&gt;&lt;P&gt;Could you please let me know what does it mean ‘-9’ under crash_id 3? Is it unknown or missed data? If it is then how I will fix the issue before calculation?&lt;/P&gt;&lt;P&gt;Looking for your kind response.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 11:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818546#M34659</guid>
      <dc:creator>Uddin</dc:creator>
      <dc:date>2022-06-16T11:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: unknown or missing value under string variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818549#M34660</link>
      <description>&lt;P&gt;I would imagine you should ask the person who created the data. We don't know why -9 shows up there.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 11:55:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818549#M34660</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-16T11:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: unknown or missing value under string variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818564#M34663</link>
      <description>&lt;P&gt;Since you did not post your data as recommended (data step with datalines), we have no idea what it&amp;nbsp;&lt;EM&gt;really&lt;/EM&gt; contains.&lt;/P&gt;
&lt;P&gt;It might even be that bus_involvement is numeric, with a format that displays 0 as no and 1 as yes. Since -9 is not covered by the format, it is displayed as is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, the meaning of -9 should be defined in the documentation for the data you received. You got none? Request it.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 12:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818564#M34663</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-16T12:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: unknown or missing value under string variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818571#M34664</link>
      <description>Hi,&lt;BR /&gt;Thanks for your kind response. Here is the data step:&lt;BR /&gt;data road_crash;&lt;BR /&gt;input crash_id $ bus_involvement$;&lt;BR /&gt;datalines;&lt;BR /&gt;20205093 Yes&lt;BR /&gt;20205008 No&lt;BR /&gt;20205050 -9&lt;BR /&gt;20201127 No&lt;BR /&gt;20202001 No&lt;BR /&gt;20207010 Yes&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;According to data sets, bus_involvement is string variable.&lt;BR /&gt;&lt;BR /&gt;Looking for your kind feedbacks.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jun 2022 13:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818571#M34664</guid>
      <dc:creator>Uddin</dc:creator>
      <dc:date>2022-06-16T13:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: unknown or missing value under string variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818577#M34666</link>
      <description>&lt;P&gt;It appears the entry of a -9 for bus involvement was a decision made by those who provided the data to you.&amp;nbsp; We could guess what it means, but we can't read their minds.&amp;nbsp; Ask them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a technical note, you are reading the -9 as a string value, producing bus_involvement="-9".&amp;nbsp; A SAS procedure like proc freq will treat "-9" as a valid value.&amp;nbsp; For character variables, only a blank is treated as missing.&amp;nbsp; If you learn from your data source that the -9 is intended to represent a missing value, you could reassign "-9" to a blank.&amp;nbsp; But before doing so, I would check to see if there are any records in which bus_involvement is already blank.&amp;nbsp; If so, and if blank really means something different than -9, then you might want to leave bus_involvement unchanged and make a new variable bus_involvement2 from it, which you can modify without losing the original information.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 13:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818577#M34666</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-06-16T13:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: unknown or missing value under string variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818580#M34668</link>
      <description>Hi,&lt;BR /&gt;Thank you so much for your kind response. I checked the whole dataset, and couldn't find any blank under bus_involvement variable. Then do you think I can make it missing or blank? Looking for your kind response. Kind Regards&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jun 2022 14:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818580#M34668</guid>
      <dc:creator>Uddin</dc:creator>
      <dc:date>2022-06-16T14:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: unknown or missing value under string variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818581#M34669</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/427395"&gt;@Uddin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;Thank you so much for your kind response. I checked the whole dataset, and couldn't find any blank under bus_involvement variable. Then do you think I can make it missing or blank? Looking for your kind response. Kind Regards&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What is the benefit of converting -9 to a blank? I see none.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you've missed the point. Until you know what -9 means, converting it to something else may not be a good thing to do. Please go find out what -9 means.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 14:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/unknown-or-missing-value-under-string-variable/m-p/818581#M34669</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-16T14:25:28Z</dc:date>
    </item>
  </channel>
</rss>

