<?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: proc export to txt in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176327#M45214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input LOAN&amp;nbsp; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSING_DATE&amp;nbsp; $10.&amp;nbsp;&amp;nbsp; DEFAULT_REASON $ LAST_NAME&amp;nbsp; $&amp;nbsp; EMAIL$25. ;&lt;BR /&gt;datalines;&lt;BR /&gt;111111119 05/15/2014 Layoff Shelton &lt;A href="mailto:shelton@gmail.com"&gt;shelton@gmail.com&lt;/A&gt;&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc export data=have&lt;BR /&gt;&amp;nbsp;&amp;nbsp; outfile='/sasuserhome/hyenigalla/have.txt'&lt;BR /&gt;&amp;nbsp;&amp;nbsp; dbms=dlm; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; delimiter='|';&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="7221" alt="Capture.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7221_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2014 19:23:47 GMT</pubDate>
    <dc:creator>Hima</dc:creator>
    <dc:date>2014-08-26T19:23:47Z</dc:date>
    <item>
      <title>proc export to txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176326#M45213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isnt the code&lt;/P&gt;&lt;P&gt;dsd dlm = ' | '&amp;nbsp;&amp;nbsp;&amp;nbsp; the method to help avoid excess characters, in this case excess | when using proc export to .txt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my fields in the dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSING_DATE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEFAULT_REASON&amp;nbsp; LAST_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp; EMAIL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired output&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:111111119|05/15/2014|Layoff|Shelton|shelton@gmail.com"&gt;111111119|05/15/2014|Layoff|Shelton|shelton@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead I get this&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:111111119|05/15/2014||||||||||||Layoff|Shelton|shelton@gmail.com"&gt;111111119|05/15/2014||||||||||||Layoff|&lt;/A&gt;|||||||||||||&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:Shelton|shelton@gmail.com"&gt;Shelton|shelton@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get extra&amp;nbsp; | and the word jump to the next line.&amp;nbsp; The Loan number should always begin the proc export.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 19:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176326#M45213</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2014-08-26T19:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176327#M45214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input LOAN&amp;nbsp; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSING_DATE&amp;nbsp; $10.&amp;nbsp;&amp;nbsp; DEFAULT_REASON $ LAST_NAME&amp;nbsp; $&amp;nbsp; EMAIL$25. ;&lt;BR /&gt;datalines;&lt;BR /&gt;111111119 05/15/2014 Layoff Shelton &lt;A href="mailto:shelton@gmail.com"&gt;shelton@gmail.com&lt;/A&gt;&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc export data=have&lt;BR /&gt;&amp;nbsp;&amp;nbsp; outfile='/sasuserhome/hyenigalla/have.txt'&lt;BR /&gt;&amp;nbsp;&amp;nbsp; dbms=dlm; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; delimiter='|';&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="7221" alt="Capture.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7221_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 19:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176327#M45214</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2014-08-26T19:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176328#M45215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Going to another line may mean that your field Last_namel contains control characters such as a carriage return or line feed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you may want to post the entire proc export code to see if any options are interacting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 19:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176328#M45215</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-08-26T19:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176329#M45216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without seeing your actual data and your code, it is difficult to debug. I can't repeat your issue, below code works for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;export&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=sashelp.class &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;outfile&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;"h:\temp\class_pipe1.txt"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;dbms&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=dlm &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;delimiter&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'|'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;putnames&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=yes;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;Haikuo &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 19:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176329#M45216</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-08-26T19:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176330#M45217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing to look at if this data was originally imported from Excel: if the source file has HIDDEN columns you may have imported a bunch of blank columns that would have names like Var1 Var2 Var3. Export would produce a delimiter between each of those fields. If you don't have the PUTNAMES=YES as part of the proc export you won't notice as no column headings would appear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 22:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-to-txt/m-p/176330#M45217</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-08-26T22:53:08Z</dc:date>
    </item>
  </channel>
</rss>

