<?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: EXCEL.Insert text with new line char into one cell. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCEL-Insert-text-with-new-line-char-into-one-cell/m-p/191813#M13042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC SQL noprint ;&lt;/P&gt;&lt;P&gt;select var into :macvar separated by '0A'x&lt;/P&gt;&lt;P&gt;from that small.table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is how I would collect the values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use it where-ever like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "&amp;amp;macvar"&lt;/P&gt;&lt;P&gt;Perhaps as the label for the column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2014 17:34:16 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2014-12-01T17:34:16Z</dc:date>
    <item>
      <title>EXCEL.Insert text with new line char into one cell.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCEL-Insert-text-with-new-line-char-into-one-cell/m-p/191810#M13039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Would like to insert content of small SAS table with one column into one excel cell, each of SAS tables row should be pasted directly after previous into one cell,manually it achives by ALT+ENTER (new line in excel, or char(10) in vba).&lt;/P&gt;&lt;P&gt;But I would like not to use additional vba scripts for formatting inserted text, so is there some work around?&lt;/P&gt;&lt;P&gt;I tried to concat all rows data into one column(catt(...)) with all possible delimiters(&lt;STRONG&gt;'0D'x &lt;/STRONG&gt;or&lt;STRONG&gt; '\n' etc.)&lt;/STRONG&gt; but anyway data in excel stores in one row, no automatically move to row down, what I would like to achive...&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; a $ &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;32767&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=catt(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'0D'x&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"&amp;nbsp;&amp;nbsp; test1"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;export&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;dbms&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=xls&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;outfile&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"…\test.xls"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will b e appreciate for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 13:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCEL-Insert-text-with-new-line-char-into-one-cell/m-p/191810#M13039</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-12-01T13:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL.Insert text with new line char into one cell.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCEL-Insert-text-with-new-line-char-into-one-cell/m-p/191811#M13040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's an Excel specific item, I am not sure how you would generate that from SAS code.&amp;nbsp; Tagset export will strip non-valids, although you could write it yourself.&lt;/P&gt;&lt;P&gt;Alternatively write the xlsx itself.&lt;/P&gt;&lt;P&gt;One other option is to export data as CSV, then have a template program which loads the CSV into Excel and formats it as you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would question why you want tabular output - which is what SAS produces and uses - in a non-tabular format however?&amp;nbsp; For instance you can do this in RTF/PDF, but going from tabular to tabular seems a bit odd to try to fit non-tabular things in.&amp;nbsp; As always Excel is not for &amp;lt;insert what you are trying to do&amp;gt; hence it will not be straight forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 15:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCEL-Insert-text-with-new-line-char-into-one-cell/m-p/191811#M13040</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-12-01T15:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL.Insert text with new line char into one cell.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCEL-Insert-text-with-new-line-char-into-one-cell/m-p/191812#M13041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The CATT function may well be treating your newline as a whitespace character and removing it.&lt;/P&gt;&lt;P&gt;I would try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: SAS Monospace;"&gt;'0D'x&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: SAS Monospace;"&gt;"test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: SAS Monospace;"&gt;"&amp;nbsp;&amp;nbsp; test1"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt;but I can't since I don't have the modules to do dbms=xls.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 16:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCEL-Insert-text-with-new-line-char-into-one-cell/m-p/191812#M13041</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-12-01T16:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL.Insert text with new line char into one cell.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCEL-Insert-text-with-new-line-char-into-one-cell/m-p/191813#M13042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC SQL noprint ;&lt;/P&gt;&lt;P&gt;select var into :macvar separated by '0A'x&lt;/P&gt;&lt;P&gt;from that small.table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is how I would collect the values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use it where-ever like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "&amp;amp;macvar"&lt;/P&gt;&lt;P&gt;Perhaps as the label for the column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 17:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EXCEL-Insert-text-with-new-line-char-into-one-cell/m-p/191813#M13042</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-12-01T17:34:16Z</dc:date>
    </item>
  </channel>
</rss>

