<?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: Missing comments after converting from .xml to .xlsx in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457120#M20888</link>
    <description>&lt;P&gt;If you mean some cells have longish free form text the column might just be inheriting a width from something above where the width is just to narrow to display or the justification ends up too high or low to display in the default. Have you clicked in any of those cells in a spreadsheet program to see if text appears in the cell content window?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If no joy with that can you post the cell description text description from the XML of one or more cells with &amp;nbsp;with this problem using a plain text editor to copy and paste into a forum code box using the {I} menu icon? I suggest the plain text and code box as the main window might want to interpret content pasted into the main window differently.&lt;/P&gt;
&lt;P&gt;And example might look a bit like this:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;Row ss:AutoFitHeight="1" ss:Height="15"&amp;gt;
&amp;lt;Cell ss:StyleID="rowheader" ss:Index="2"&amp;gt;&amp;lt;Data ss:Type="String"&amp;gt;% Enroll&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;
&amp;lt;Cell ss:StyleID="data__r" ss:Index="3"&amp;gt;&amp;lt;Data ss:Type="Number"&amp;gt;18.8&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;
&amp;lt;Cell ss:StyleID="data__r" ss:Index="4"&amp;gt;&amp;lt;Data ss:Type="Number"&amp;gt;18.8&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;
&amp;lt;/Row&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The key bits are likely between the &amp;lt;Data&amp;gt; and &amp;lt;/Data&amp;gt; tags. In the above the first cell of the row&amp;nbsp;would contain "string" data with the value of "% Enroll" and the second cell would have "number" data with the value 18.8. But we are looking for cells that data&amp;nbsp;does not&amp;nbsp;appear in the xlsx.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the cell doesn't contain "data" then it likely is being ignored by XLSX conversion. If the type is something other than "String" or "Number" that could also be a problem for the conversion.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 23:25:08 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-04-24T23:25:08Z</dc:date>
    <item>
      <title>Missing comments after converting from .xml to .xlsx</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457105#M20885</link>
      <description>&lt;P&gt;I noticed that after I run the following program to convert .xml to .xlsx file, the existing comments in some fields in .xml are missing in the converted .xlsx doc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to know if anything I missed or I should add to carry over the comments to .xlsx. Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noxwait noxsync;
	x "&amp;amp;ms_excel";
	data _null_;
		x=sleep(3);
	run;

	filename ddecmd dde 'EXCEL|system';

	data _null_;
		file ddecmd;
		put '[ERROR("false")]';
		put '[FILE-OPEN("'"&amp;amp;Out_Path\&amp;amp;Rpt_Name..xml"'")]';
		put '[ERROR("false")]';
		put '[SAVE.AS("'"&amp;amp;Out_Path\&amp;amp;Rpt_Name..xlsx"'",51)]';
		put '[ERROR("false")]';
		put '[QUIT()]';
	run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Apr 2018 22:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457105#M20885</guid>
      <dc:creator>mehong19</dc:creator>
      <dc:date>2018-04-24T22:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Missing comments after converting from .xml to .xlsx</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457110#M20886</link>
      <description>&lt;P&gt;Does this happen if you manually save the XML as XLSX or just when using DDE?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 22:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457110#M20886</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-24T22:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Missing comments after converting from .xml to .xlsx</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457115#M20887</link>
      <description>&lt;P&gt;I found this situation happens for both, manually converted and DDE conversion.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 23:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457115#M20887</guid>
      <dc:creator>mehong19</dc:creator>
      <dc:date>2018-04-24T23:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Missing comments after converting from .xml to .xlsx</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457120#M20888</link>
      <description>&lt;P&gt;If you mean some cells have longish free form text the column might just be inheriting a width from something above where the width is just to narrow to display or the justification ends up too high or low to display in the default. Have you clicked in any of those cells in a spreadsheet program to see if text appears in the cell content window?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If no joy with that can you post the cell description text description from the XML of one or more cells with &amp;nbsp;with this problem using a plain text editor to copy and paste into a forum code box using the {I} menu icon? I suggest the plain text and code box as the main window might want to interpret content pasted into the main window differently.&lt;/P&gt;
&lt;P&gt;And example might look a bit like this:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;Row ss:AutoFitHeight="1" ss:Height="15"&amp;gt;
&amp;lt;Cell ss:StyleID="rowheader" ss:Index="2"&amp;gt;&amp;lt;Data ss:Type="String"&amp;gt;% Enroll&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;
&amp;lt;Cell ss:StyleID="data__r" ss:Index="3"&amp;gt;&amp;lt;Data ss:Type="Number"&amp;gt;18.8&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;
&amp;lt;Cell ss:StyleID="data__r" ss:Index="4"&amp;gt;&amp;lt;Data ss:Type="Number"&amp;gt;18.8&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;
&amp;lt;/Row&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The key bits are likely between the &amp;lt;Data&amp;gt; and &amp;lt;/Data&amp;gt; tags. In the above the first cell of the row&amp;nbsp;would contain "string" data with the value of "% Enroll" and the second cell would have "number" data with the value 18.8. But we are looking for cells that data&amp;nbsp;does not&amp;nbsp;appear in the xlsx.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the cell doesn't contain "data" then it likely is being ignored by XLSX conversion. If the type is something other than "String" or "Number" that could also be a problem for the conversion.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 23:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457120#M20888</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-24T23:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Missing comments after converting from .xml to .xlsx</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457130#M20889</link>
      <description>&lt;P&gt;I found an indirect manually conversion works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I firstly saved in .xls file, comments are retained. Then, save the .xls to .xlsx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 00:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457130#M20889</guid>
      <dc:creator>mehong19</dc:creator>
      <dc:date>2018-04-25T00:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Missing comments after converting from .xml to .xlsx</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457133#M20890</link>
      <description>&lt;P&gt;I found solution myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By a indirect conversion from .xml, .xls. to .xlsx via SAS DDE procedure, I can work it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I modified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noxwait noxsync;
	x "&amp;amp;ms_excel";
	data _null_;
		x=sleep(3);
	run;

	filename ddecmd dde 'EXCEL|system';

	data _null_;
		file ddecmd;
		put '[ERROR("false")]';
		put '[FILE-OPEN("'"&amp;amp;Out_Path\&amp;amp;Rpt_Name..xml"'")]';
		put '[ERROR("false")]';
		put '[SAVE.AS("'"&amp;amp;Out_Path\&amp;amp;Rpt_Name..xls"'",56)]';
		put '[ERROR("false")]';
		put '[QUIT()]';
	run;

options noxwait noxsync;
	x "&amp;amp;ms_excel";
	data _null_;
		x=sleep(3);
	run;

	filename ddecmd dde 'EXCEL|system';

	data _null_;
		file ddecmd;
		put '[ERROR("false")]';
		put '[FILE-OPEN("'"&amp;amp;Out_Path\&amp;amp;Rpt_Name..xls"'")]';
		put '[ERROR("false")]';
		put '[SAVE.AS("'"&amp;amp;Out_Path\&amp;amp;Rpt_Name..xlsx"'",51)]';
		put '[ERROR("false")]';
		put '[QUIT()]';
	run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 01:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Missing-comments-after-converting-from-xml-to-xlsx/m-p/457133#M20890</guid>
      <dc:creator>mehong19</dc:creator>
      <dc:date>2018-04-25T01:02:33Z</dc:date>
    </item>
  </channel>
</rss>

