<?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 Help!  Data Format Issue When Exporting from SAS EG to MS Excel 2010 in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Help-Data-Format-Issue-When-Exporting-from-SAS-EG-to-MS-Excel/m-p/145179#M1390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am exporting a lot of Excel files from SAS EG, and using these Excel files to create summary reports.&amp;nbsp; My 'go-to' tool in Excel is the handy dandy Pivot Table.&amp;nbsp; Here is my basic issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use a Pivot Table to "Count" the number of observations within a particular field, the number returned is always equal to the total number of lines in the Excel tab the Pivot Table is sourced from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Speaking with a few other SAS users in my organization, they are suggesting there are "unprintable" or "hidden" characters which are in those fields, and therefore being counted by the Pivot Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to change my settings, or alter some code, in SAS EG, so that the Excel file being exported comes out without these "unprintable" or "hidden" characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone experienced and solved this issue in the past?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 14:46:36 GMT</pubDate>
    <dc:creator>JeremyW</dc:creator>
    <dc:date>2014-09-15T14:46:36Z</dc:date>
    <item>
      <title>Help!  Data Format Issue When Exporting from SAS EG to MS Excel 2010</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Help-Data-Format-Issue-When-Exporting-from-SAS-EG-to-MS-Excel/m-p/145179#M1390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am exporting a lot of Excel files from SAS EG, and using these Excel files to create summary reports.&amp;nbsp; My 'go-to' tool in Excel is the handy dandy Pivot Table.&amp;nbsp; Here is my basic issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use a Pivot Table to "Count" the number of observations within a particular field, the number returned is always equal to the total number of lines in the Excel tab the Pivot Table is sourced from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Speaking with a few other SAS users in my organization, they are suggesting there are "unprintable" or "hidden" characters which are in those fields, and therefore being counted by the Pivot Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to change my settings, or alter some code, in SAS EG, so that the Excel file being exported comes out without these "unprintable" or "hidden" characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone experienced and solved this issue in the past?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 14:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Help-Data-Format-Issue-When-Exporting-from-SAS-EG-to-MS-Excel/m-p/145179#M1390</guid>
      <dc:creator>JeremyW</dc:creator>
      <dc:date>2014-09-15T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help!  Data Format Issue When Exporting from SAS EG to MS Excel 2010</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Help-Data-Format-Issue-When-Exporting-from-SAS-EG-to-MS-Excel/m-p/145180#M1391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JeremyW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that it's that there are "unprintable" or "hidden" characters, so much as the way that the count function works in Excel Pivot Tables - it counts cells even when you consider them "missing".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is to sum a field that is either 1 or 0 when you want to provide a "count".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use an Excel function to populate the cells in a "Counter" column.&amp;nbsp; But, it is much neater to generate the column in your SAS dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The datastep statements to produces such "Counters" would be like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if CharVar1 = ' ' then CharVar1_Ctr = 0; else CharVar1_Ctr = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if NumVar1 = . then NumVar1_Ctr = 0; else NumVar1_Ctr = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 03:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Help-Data-Format-Issue-When-Exporting-from-SAS-EG-to-MS-Excel/m-p/145180#M1391</guid>
      <dc:creator>DaveBirch</dc:creator>
      <dc:date>2014-10-23T03:56:10Z</dc:date>
    </item>
  </channel>
</rss>

