<?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: Is there a way to determine which values SAS is treating as missing? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-determine-which-values-SAS-is-treating-as/m-p/90903#M257323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data is coded then you would normally expect to see in the PROC CONTENTS output ( or in the interactive VAR window) the format that is attached to the variable.&amp;nbsp; You can then use PROC FORMAT to view the definition of the format.&amp;nbsp; Note that for SAS only the name of the format is permanently attached to the variable in the dataset.&amp;nbsp; The formats themselves are stored in format catalogs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Jun 2012 19:10:56 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2012-06-23T19:10:56Z</dc:date>
    <item>
      <title>Is there a way to determine which values SAS is treating as missing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-determine-which-values-SAS-is-treating-as/m-p/90901#M257321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS doesn't have a "data view" and a "variable view" the way that SPSS does, and so to my knowledge, there's no way to look up what values have been assigned to missing in SAS, such as -9s or -8s?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be an issue if one has read in data from SPSS, or used StatTransfer to transfer the file from another program into SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get SAS to tell me what values (such as -9s or -8s) it is recognizing as missing?&amp;nbsp; There is PROC CONTENTS, but to my knowledge, that doesn't have data on what is coded as what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help you can provide!&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jun 2012 18:42:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-determine-which-values-SAS-is-treating-as/m-p/90901#M257321</guid>
      <dc:creator>LisaM_Yarnell</dc:creator>
      <dc:date>2012-06-23T18:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to determine which values SAS is treating as missing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-determine-which-values-SAS-is-treating-as/m-p/90902#M257322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS has 28 special missing value ., ._, .a, .b, ..... ,.z that work for all numeric variables.&amp;nbsp; You do not need to enter dummy valid numbers like 9 or -9&amp;nbsp; as you would in SPSS.&amp;nbsp; So you do not need to somehow tell it later to treat these as something other than they appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you already have read your data into variables then you can recode them using a data step.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data new; set old ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if x=-9 then x=.; else if x=-8 then x=.a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are just using the data as categories then in you might be able to just fix it using formats.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc format ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; value miss89f -9,-8 = ' ' other=[f2.];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc freq data=old;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; format x miss89f.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; tables x;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jun 2012 18:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-determine-which-values-SAS-is-treating-as/m-p/90902#M257322</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-06-23T18:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to determine which values SAS is treating as missing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-determine-which-values-SAS-is-treating-as/m-p/90903#M257323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data is coded then you would normally expect to see in the PROC CONTENTS output ( or in the interactive VAR window) the format that is attached to the variable.&amp;nbsp; You can then use PROC FORMAT to view the definition of the format.&amp;nbsp; Note that for SAS only the name of the format is permanently attached to the variable in the dataset.&amp;nbsp; The formats themselves are stored in format catalogs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jun 2012 19:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-determine-which-values-SAS-is-treating-as/m-p/90903#M257323</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-06-23T19:10:56Z</dc:date>
    </item>
  </channel>
</rss>

