<?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: Export free text to Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769186#M244028</link>
    <description>&lt;P&gt;Put your "free text" in a SAS data set. Then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='c:\file-path\Cities.xlsx' options (sheet_interval='none' suppress_bylines="off" 
    sheet_name="City");

proc report data=have;
run;

ods excel options(sheet_name='Free Text');
proc print data=free_text;
run;

ODS EXCEL CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Sep 2021 14:55:12 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-09-22T14:55:12Z</dc:date>
    <item>
      <title>Export free text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769185#M244027</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My dataset look like this (see below) and is exported to excel with ods. I would like to add free text in a different sheet in the same excel file. The free text should look like this (like a log):&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2021-09-22: Changed variabelname for City&lt;/P&gt;
&lt;P&gt;2021-09-20: Made uppercase fo City&lt;/P&gt;
&lt;P&gt;2021-09-18: Created dataset&lt;/P&gt;
&lt;P&gt;2021-09-15: Created a mean&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried different ways but have not found any good solution to export free text to excel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;;&lt;BR /&gt;input City$ month$ year2017 year2018 year2019 mean2017_2019;&lt;BR /&gt;datalines;&lt;BR /&gt;London Jan 10 15 20 15&lt;BR /&gt;Rom Jan 20 25 30 25 &lt;BR /&gt;Paris Jan 20 10 10 13.33&lt;BR /&gt;Berlin Jan 50 60 70 60&lt;BR /&gt;London Feb 20 30 40 30&lt;BR /&gt;Rom Feb 40 50 60 50 &lt;BR /&gt;Paris Feb 40 20 20 26.67&lt;BR /&gt;Berlin Feb 100 90 50 80&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS EXCEL FILE=&lt;SPAN&gt;'c:\&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;file-path&lt;/EM&gt;&lt;SPAN&gt;\Cities.xlsx'&lt;/SPAN&gt;&lt;BR /&gt;options (sheet_interval='none' suppress_bylines="off" sheet_name="City);&lt;/P&gt;
&lt;P&gt;PROC REPORT data=have;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ODS EXCEL CLOSE;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 14:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769185#M244027</guid>
      <dc:creator>Chris_LK_87</dc:creator>
      <dc:date>2021-09-22T14:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export free text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769186#M244028</link>
      <description>&lt;P&gt;Put your "free text" in a SAS data set. Then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='c:\file-path\Cities.xlsx' options (sheet_interval='none' suppress_bylines="off" 
    sheet_name="City");

proc report data=have;
run;

ods excel options(sheet_name='Free Text');
proc print data=free_text;
run;

ODS EXCEL CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 14:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769186#M244028</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-22T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export free text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769187#M244029</link>
      <description>Have you tried PROC ODSTEXT?&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsproc/p1tfjsx3ezqhacn1gqqsxqii7lpv.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsproc/p1tfjsx3ezqhacn1gqqsxqii7lpv.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or ODS TEXT?&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsproc/p1tfjsx3ezqhacn1gqqsxqii7lpv.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsproc/p1tfjsx3ezqhacn1gqqsxqii7lpv.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or save that information to a data set (single variable) and use PROC REPORT with the NOHEADER option?&lt;BR /&gt;Add No Header to your own example.....&lt;BR /&gt;&lt;BR /&gt;Or footnote statements if you want them at the bottom of the table?&lt;BR /&gt;&lt;BR /&gt;I would suggest keeping them in a data set so you can just add to them in the future and use the PROC REPORT with the NOHEADER option to print them to the file. &lt;BR /&gt;</description>
      <pubDate>Wed, 22 Sep 2021 14:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769187#M244029</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-22T14:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Export free text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769806#M244120</link>
      <description>Thanks! &lt;BR /&gt;&lt;BR /&gt;This might be a silly question, but howe do add "free text " in a SAS dataset? &lt;BR /&gt;&lt;BR /&gt;I have tried:&lt;BR /&gt;&lt;BR /&gt;Data logg;&lt;BR /&gt;file print;&lt;BR /&gt;put 'Hello world';&lt;BR /&gt;run;</description>
      <pubDate>Thu, 23 Sep 2021 07:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769806#M244120</guid>
      <dc:creator>Chris_LK_87</dc:creator>
      <dc:date>2021-09-23T07:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export free text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769808#M244122</link>
      <description>&lt;P&gt;Datasets contain variables, variables contain data.&lt;/P&gt;
&lt;P&gt;To add data to a dataset, add a variable and give it a value:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input free_text $80.;
datalines;
Free Text
Another Free Text
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 08:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769808#M244122</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-09-23T08:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export free text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769927#M244186</link>
      <description>Thank!</description>
      <pubDate>Thu, 23 Sep 2021 14:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-free-text-to-Excel/m-p/769927#M244186</guid>
      <dc:creator>Chris_LK_87</dc:creator>
      <dc:date>2021-09-23T14:14:59Z</dc:date>
    </item>
  </channel>
</rss>

