<?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 Export dot missings to Excel in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Export-dot-missings-to-Excel/m-p/263357#M57739</link>
    <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I am trying to export some data to Excel from SAS EG 7.1 using proc export and dbms = xls. It works well except that one of my numeric variables includes both ordinary missings and .S and both are converted to blanks in the export.  Is there a way to retain the .S as this or some other value that distinguishes it from the ordinary missings?&lt;BR /&gt;&lt;BR /&gt;One solution is to use dbms = .csv but I then have problems with losing leading zeros in a character variable.  And I also can't export multiple SAS datasets to different worksheets in the same Excel file then.&lt;BR /&gt;&lt;BR /&gt;And another is to convert the numeric variable to a character - this changes .S to S which is fine, but converts the ordinary numeric missings to . in Excel plus all numbers to text which isn't so helpful.&lt;BR /&gt;&lt;BR /&gt;Is there anything else I could try?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Zaneta</description>
    <pubDate>Wed, 13 Apr 2016 00:30:59 GMT</pubDate>
    <dc:creator>Zaneta</dc:creator>
    <dc:date>2016-04-13T00:30:59Z</dc:date>
    <item>
      <title>Export dot missings to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dot-missings-to-Excel/m-p/263357#M57739</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I am trying to export some data to Excel from SAS EG 7.1 using proc export and dbms = xls. It works well except that one of my numeric variables includes both ordinary missings and .S and both are converted to blanks in the export.  Is there a way to retain the .S as this or some other value that distinguishes it from the ordinary missings?&lt;BR /&gt;&lt;BR /&gt;One solution is to use dbms = .csv but I then have problems with losing leading zeros in a character variable.  And I also can't export multiple SAS datasets to different worksheets in the same Excel file then.&lt;BR /&gt;&lt;BR /&gt;And another is to convert the numeric variable to a character - this changes .S to S which is fine, but converts the ordinary numeric missings to . in Excel plus all numbers to text which isn't so helpful.&lt;BR /&gt;&lt;BR /&gt;Is there anything else I could try?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Zaneta</description>
      <pubDate>Wed, 13 Apr 2016 00:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dot-missings-to-Excel/m-p/263357#M57739</guid>
      <dc:creator>Zaneta</dc:creator>
      <dc:date>2016-04-13T00:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export dot missings to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dot-missings-to-Excel/m-p/263402#M57741</link>
      <description>&lt;P&gt;In Excel, a missing numerical value is always represented as an empty cell. So if you want to have the column as numeric data, blanks is what you get.&lt;/P&gt;
&lt;P&gt;A workaround could be to assign special non-missing values for your .S (before you do the export), which you could then use with a user-defined format in Excel, if that is possible.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 06:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dot-missings-to-Excel/m-p/263402#M57741</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-13T06:15:59Z</dc:date>
    </item>
  </channel>
</rss>

