<?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: Extra Carriage Returns being created when using Proc Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104783#M9844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc export data=CSMOUT1_SUM2 outfile='TESTOUT.TXT' DBMS=DLM delimiter='|' replace;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 20:21:44 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2012-12-19T20:21:44Z</dc:date>
    <item>
      <title>Extra Carriage Returns being created when using Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104780#M9841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have this simple data set that I want to create a pipe delimited .txt file but I'm getting 2 added end-of-record/carriage returns in the file.&amp;nbsp; I'll try to supply all the necessary data/code so any help would be appreciated.&amp;nbsp; I'm still fairly new to SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Simple Data Set&lt;/SPAN&gt; (no imbedded CR or LF that I can see) output is called CSMOUT1_SUM&lt;/P&gt;&lt;P&gt;CNTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TOT_CHARGE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TOT_PAID&lt;/P&gt;&lt;P&gt;150425&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 53,574,833.43&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21,162,557.11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code to create simple .txt file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA CSMOUT1_SUM2 (KEEP=CNTR TOTCHARGES TOTPAID);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET CSMOUT1_SUM;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TOTCHARGES=PUT(TOT_CHARGE, COMMA13.2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TOTPAID=PUT(TOT_PAID, COMMA13.2);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;/* */&lt;/P&gt;&lt;P&gt;ODS LISTING CLOSE;&lt;/P&gt;&lt;P&gt;ODS CSV FILE='TESTOUT.TXT' OPTIONS(DELIMITER='|');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA=CSMOUT1_SUB2 NOHEADER;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS CSV CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output I get looks like the following when I look at the file in wordpad: (The CRLF are the added carriage returns that I'm getting)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;150425|53574833.43|21162557.11 CRLF&lt;/P&gt;&lt;P&gt;CRLF&lt;/P&gt;&lt;P&gt;CRLF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 20:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104780#M9841</guid>
      <dc:creator>SASFanTodd</dc:creator>
      <dc:date>2012-12-19T20:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extra Carriage Returns being created when using Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104781#M9842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try PROC PRINT instead of PROC REPORT.&amp;nbsp; Doesn' t look like you are doing anything that needs PROC REPORT functionality.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 20:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104781#M9842</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-12-19T20:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extra Carriage Returns being created when using Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104782#M9843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried PROC PRINT as well.&amp;nbsp; I dont want the headers and I was aware of the option in PROC REPORT so thats what I used.&amp;nbsp; Anyway, PROC PRINT produces extra carriage returns as well.&amp;nbsp; Could it be a global setting in Options or somthing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 20:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104782#M9843</guid>
      <dc:creator>SASFanTodd</dc:creator>
      <dc:date>2012-12-19T20:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extra Carriage Returns being created when using Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104783#M9844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc export data=CSMOUT1_SUM2 outfile='TESTOUT.TXT' DBMS=DLM delimiter='|' replace;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 20:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104783#M9844</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-12-19T20:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extra Carriage Returns being created when using Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104784#M9845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ballardw!,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is closer....now I only have 1 extra carriage return at the end instead of 2 so it looks like the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;150425|53574833.43|21162557.11 CRLF&lt;/P&gt;&lt;P&gt;CRLF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be a way to not have the headers either I'm sure using PROC EXPORT....I can figure that part out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Update&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I got the headers out via "putnames=no"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I believe this is how the .txt file is to look - Thanks to all for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 20:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-Carriage-Returns-being-created-when-using-Proc-Report/m-p/104784#M9845</guid>
      <dc:creator>SASFanTodd</dc:creator>
      <dc:date>2012-12-19T20:44:30Z</dc:date>
    </item>
  </channel>
</rss>

