<?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: maintaining characters during proc export to excel in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414056#M4042</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-11-16 at 10.49.49 AM.png" style="width: 420px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16673iB9B4DB543013651D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-11-16 at 10.49.49 AM.png" alt="Screen Shot 2017-11-16 at 10.49.49 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the error&amp;nbsp;when I tried using xlsx so I just switched everything to cvs and got exactly what I was looking for. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2017 15:51:19 GMT</pubDate>
    <dc:creator>sastuck</dc:creator>
    <dc:date>2017-11-16T15:51:19Z</dc:date>
    <item>
      <title>maintaining characters during proc export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414038#M4036</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The body of my data looks fine, but I am missing all&amp;nbsp;cells with characters&amp;nbsp;when exporting my data into excel. Any tips?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export&lt;BR /&gt;data=paper.arrests_schools&lt;BR /&gt;dbms=csv&lt;BR /&gt;outfile="/home/apmorabito0/my_courses/paper_c/arrests_schools.sas7bdat"&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 15:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414038#M4036</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2017-11-16T15:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining characters during proc export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414043#M4038</link>
      <description>&lt;P&gt;What is it your trying to do.&amp;nbsp; You say when you proc export to excel, however your export destination is CSV.&amp;nbsp; CSV is&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/U&gt; Excel, CSV = text file with comma separated data items, Excel does contain a module which can parse this file format.&lt;/P&gt;
&lt;P&gt;Secondly, again you say proc export to Excel, yet the file extension given is for a SAS dataset:&lt;BR /&gt;&lt;SPAN&gt;outfile="/home/apmorabito0/my_courses/paper_c/arrests_schools.sas7bdat"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Excel files have the extension .xlsx.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"The body of my data looks fine, but I am missing all&amp;nbsp;cells with characters&amp;nbsp;when exporting my data into excel."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Doesn't make any sense, how can the body of data look fine, and yet not look fine?&amp;nbsp; Present some example.&amp;nbsp; Also show what the contents of your&amp;nbsp;paper.arrests_schools data is, if you export data via proc export to xls, then you will losing formatting information (i.e. you can format values to look differenty, i.e. dates look like DDMMMYYYY with that format, but are really a number underneath).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 15:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414043#M4038</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-16T15:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining characters during proc export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414045#M4039</link>
      <description>&lt;P&gt;It might really help to name the outfile as a CSV file instead of a SAS dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;outfile="/home/apmorabito0/my_courses/paper_c/arrests_schools.csv"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without actual data to examine we have no clue what Excel may be doing with the resulting file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to print a few lines of the data set paper.arrests_schools to show us what you expect to see and we be able to provide some hints.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 15:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414045#M4039</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-16T15:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining characters during proc export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414049#M4040</link>
      <description>&lt;P&gt;If you want to use the file with Excel then create an Excel file and not a text file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export
   data=paper.arrests_schools
   dbms=xlsx
   outfile="/...../arrests_schools.xlsx" replace
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you do create an CSV file then do not let Excel automatically open it. Excel will by default try to convert strings that look like numbers or dates instead of just copying them in as text.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead use the import user interface in Excel so that you can control the way that Excel converts the text in the CSV into cell values.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 15:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414049#M4040</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-16T15:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining characters during proc export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414050#M4041</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-11-16 at 10.34.59 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16671i0BA3108DEA7EDCF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-11-16 at 10.34.59 AM.png" alt="Screen Shot 2017-11-16 at 10.34.59 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-11-16 at 10.36.12 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16672i697037977DF25629/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-11-16 at 10.36.12 AM.png" alt="Screen Shot 2017-11-16 at 10.36.12 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some screenshots. I am trying to retain the column names and all of the instnm column. And you are correct, I would like to for my export destination to be CSV. I will take&amp;nbsp;&lt;SPAN&gt;ballardw's advice and change the outfile to this:&amp;nbsp;outfile="/home/apmorabito0/my_courses/paper_c/arrests_schools.csv"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 15:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414050#M4041</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2017-11-16T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining characters during proc export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414056#M4042</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-11-16 at 10.49.49 AM.png" style="width: 420px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16673iB9B4DB543013651D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-11-16 at 10.49.49 AM.png" alt="Screen Shot 2017-11-16 at 10.49.49 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the error&amp;nbsp;when I tried using xlsx so I just switched everything to cvs and got exactly what I was looking for. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 15:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414056#M4042</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2017-11-16T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: maintaining characters during proc export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414057#M4043</link>
      <description>great advice--thank you!</description>
      <pubDate>Thu, 16 Nov 2017 15:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/maintaining-characters-during-proc-export-to-excel/m-p/414057#M4043</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2017-11-16T15:53:07Z</dc:date>
    </item>
  </channel>
</rss>

