<?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: ODS Excel output - Missing Numeric Data in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574635#M23040</link>
    <description>&lt;P&gt;The example data needs to be in the form of a data step. I cannot tell from your example whether the Ch_id or child_weight variables are character or not. I am actually only moderately certain that ch_subsidy is character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 15:33:14 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-07-18T15:33:14Z</dc:date>
    <item>
      <title>ODS Excel output - Missing Numeric Data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574388#M23035</link>
      <description>&lt;P&gt;I am trying to load an Excel workbook with some data for a coworker who is not a SAS Programmer so she can play with it in some Pivot Tables and charts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using ODS Excel to output the data, because the underlying data has like 30 variables that are coded from a survey and must have formats applied to them to understand them.&amp;nbsp; I've used the OPTIONS MISSING="" to change the numeric missing period to a null, because Excel won't read a period as numeric data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to import the resulting spreadsheet into PowerPivot, Excel still won't interpret any numeric variable with missing values as numeric.&amp;nbsp; The error says that there is some unknown data in the missing cells that it identifies as character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone have any ideas on if there is something I can do with the SAS output to ensure the the resulting Excel cells are null?&amp;nbsp; I don't really want to have to use Proc Export because it will take a lot of time to try to recode all the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 22:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574388#M23035</guid>
      <dc:creator>brittneykp</dc:creator>
      <dc:date>2019-07-17T22:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel output - Missing Numeric Data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574392#M23036</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/34046"&gt;@brittneykp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to load an Excel workbook with some data for a coworker who is not a SAS Programmer so she can play with it in some Pivot Tables and charts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using ODS Excel to output the data, because the underlying data has like 30 variables that are coded from a survey and must have formats applied to them to understand them.&amp;nbsp; I've used the OPTIONS MISSING="" to change the numeric missing period to a null, because Excel won't read a period as numeric data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to import the resulting spreadsheet into PowerPivot, Excel still won't interpret any numeric variable with missing values as numeric.&amp;nbsp; The error says that there is some unknown data in the missing cells that it identifies as character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone have any ideas on if there is something I can do with the SAS output to ensure the the resulting Excel cells are null?&amp;nbsp; I don't really want to have to use Proc Export because it will take a lot of time to try to recode all the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It will help to show the exact code you used to export the data to excel since there are multiple possible ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If possible it would help to provide some example data &lt;STRONG&gt;in the form of a data step&lt;/STRONG&gt; that shows the behavior you are talking about when exported using the same method. Likely you would only need 3 or 4 variables and 3 or 4 rows.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 22:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574392#M23036</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-17T22:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel output - Missing Numeric Data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574612#M23038</link>
      <description>&lt;P&gt;Here is the code I ran:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="\\CDSS6PSAS1\ffpb\Reports\Child Trends Final Data Set\Child Trends Data &amp;amp;sysdate. Priority 1.xlsx"
options(sheet_name="data");

options missing="";

PROC PRINT DATA=MATCHED;
ID ch_id ch_subsidy child_weight;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here are the first 10 rows of data.&amp;nbsp; I would like the blank cells in "Child Weight" to truly be null.&amp;nbsp; Currently, they have some invisible character in them that Excel reads as character, preventing me from using it as a numeric measure in Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="420"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="98"&gt;ch_id&lt;/TD&gt;
&lt;TD width="91"&gt;ch_subsidy&lt;/TD&gt;
&lt;TD width="105"&gt;child_weight&lt;/TD&gt;
&lt;TD width="126"&gt;prov_type&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="126"&gt;Family-Based&lt;BR /&gt;Care&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="126"&gt;Family-Based&lt;BR /&gt;Care&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="126"&gt;License-Exempt&lt;BR /&gt;Family Care&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="126"&gt;Family-Based&lt;BR /&gt;Care&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="126"&gt;Center-based&lt;BR /&gt;care&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;C1AP&lt;/TD&gt;
&lt;TD&gt;.13&lt;/TD&gt;
&lt;TD width="126"&gt;License-Exempt&lt;BR /&gt;Family Care&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;C1AP&lt;/TD&gt;
&lt;TD&gt;28.05&lt;/TD&gt;
&lt;TD width="126"&gt;Family-Based&lt;BR /&gt;Care&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;C2AP&lt;/TD&gt;
&lt;TD&gt;303.28&lt;/TD&gt;
&lt;TD width="126"&gt;License-Exempt&lt;BR /&gt;Family Care&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;CSPP&lt;/TD&gt;
&lt;TD&gt;24.29&lt;/TD&gt;
&lt;TD width="126"&gt;Center-based&lt;BR /&gt;care&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;10&lt;/TD&gt;
&lt;TD&gt;CCTR&lt;/TD&gt;
&lt;TD&gt;82.01&lt;/TD&gt;
&lt;TD width="126"&gt;Center-based&lt;BR /&gt;care&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 18 Jul 2019 14:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574612#M23038</guid>
      <dc:creator>brittneykp</dc:creator>
      <dc:date>2019-07-18T14:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel output - Missing Numeric Data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574635#M23040</link>
      <description>&lt;P&gt;The example data needs to be in the form of a data step. I cannot tell from your example whether the Ch_id or child_weight variables are character or not. I am actually only moderately certain that ch_subsidy is character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 15:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574635#M23040</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-18T15:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel output - Missing Numeric Data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574642#M23041</link>
      <description>&lt;P&gt;Here is the description of variables.&amp;nbsp; I did not create them, they were given to me, so I don't have a data step to display.&lt;/P&gt;
&lt;P&gt;The variable of importance in this question is CHILD_WEIGHT, as it is the blank characters created in the ODS Excel output that are preventing Excel from reading it as numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Contents: Variables" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="7" scope="colgroup"&gt;Alphabetic List of Variables and Attributes&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;#&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Variable&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Type&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Len&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Format&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Informat&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Label&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TD class="l data"&gt;ch_id&lt;/TD&gt;
&lt;TD class="l data"&gt;Char&lt;/TD&gt;
&lt;TD class="r data"&gt;9&lt;/TD&gt;
&lt;TD class="l data"&gt;$9.&lt;/TD&gt;
&lt;TD class="l data"&gt;$9.&lt;/TD&gt;
&lt;TD class="l data"&gt;Child ID&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;4&lt;/TH&gt;
&lt;TD class="l data"&gt;ch_subsidy&lt;/TD&gt;
&lt;TD class="l data"&gt;Char&lt;/TD&gt;
&lt;TD class="r data"&gt;4&lt;/TD&gt;
&lt;TD class="l data"&gt;$4.&lt;/TD&gt;
&lt;TD class="l data"&gt;$4.&lt;/TD&gt;
&lt;TD class="l data"&gt;ch_subsidy&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;3&lt;/TH&gt;
&lt;TD class="l data"&gt;child_weight&lt;/TD&gt;
&lt;TD class="l data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="l data"&gt;prov_type&lt;/TD&gt;
&lt;TD class="l data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="l data"&gt;PROV_TYPE.&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;Provider type&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jul 2019 15:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-output-Missing-Numeric-Data/m-p/574642#M23041</guid>
      <dc:creator>brittneykp</dc:creator>
      <dc:date>2019-07-18T15:39:20Z</dc:date>
    </item>
  </channel>
</rss>

