<?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: Trim function or something else in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Trim-function-or-something-else/m-p/136500#M36824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Likely not. The small boxes are usually unprintable characters. Proc export allows almost no control over the resulting output. You mention "carriage returns are not working". Did you try to embed them into the strings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You get || because your delimiter is | and there is no data in that field. CSV and other delimited formats do the same thing, no data means sequential delimiters to ensure the number of columns are the same in each record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to post a few lines of input data and what you expect it to look like. Include some of the examples with blanks or other odd data.&lt;/P&gt;&lt;P&gt;A data _null_ step with put statements may be a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 22:32:18 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2014-07-24T22:32:18Z</dc:date>
    <item>
      <title>Trim function or something else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trim-function-or-something-else/m-p/136499#M36823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data mydata(keep=name address city state zip phone email);&lt;/P&gt;&lt;P&gt;set data1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a proc export &lt;/P&gt;&lt;P&gt;proc export data=mydata;&lt;/P&gt;&lt;P&gt;set mydata1;&lt;/P&gt;&lt;P&gt;File "/servername/report..txt"&lt;/P&gt;&lt;P&gt;Linesize=8000 dsd dlm='|';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases there may be a blank in one or more fields&lt;/P&gt;&lt;P&gt;Osborne 1313 E Main St Washington DC &lt;A href="mailto:myemail@me.com"&gt;myemail@me.com&lt;/A&gt;&amp;nbsp; (In this case we skipped the zip and phone number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my proc export&amp;nbsp; I am getting &lt;STRONG&gt;double ||&lt;/STRONG&gt; and sometimes I get what appear to be &lt;STRONG&gt;small boxes&lt;/STRONG&gt;.&amp;nbsp; The carraige returns are not working.&amp;nbsp; The display should begin a new line after email however in some cases a new record will begin on the same line&lt;/P&gt;&lt;P&gt;Osborne 1313 E Main St Washington DC &lt;A href="mailto:myemail@me.com"&gt;myemail@me.com&lt;/A&gt; &lt;STRONG&gt;Bradeley 1312 E Main&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Would a trim function fix this in some way?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 21:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trim-function-or-something-else/m-p/136499#M36823</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2014-07-24T21:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trim function or something else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trim-function-or-something-else/m-p/136500#M36824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Likely not. The small boxes are usually unprintable characters. Proc export allows almost no control over the resulting output. You mention "carriage returns are not working". Did you try to embed them into the strings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You get || because your delimiter is | and there is no data in that field. CSV and other delimited formats do the same thing, no data means sequential delimiters to ensure the number of columns are the same in each record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to post a few lines of input data and what you expect it to look like. Include some of the examples with blanks or other odd data.&lt;/P&gt;&lt;P&gt;A data _null_ step with put statements may be a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 22:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trim-function-or-something-else/m-p/136500#M36824</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-24T22:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trim function or something else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trim-function-or-something-else/m-p/136501#M36825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to print mailing labels?&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/base/91/forms.pdf" title="https://support.sas.com/documentation/onlinedoc/base/91/forms.pdf"&gt;https://support.sas.com/documentation/onlinedoc/base/91/forms.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 06:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trim-function-or-something-else/m-p/136501#M36825</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-25T06:38:43Z</dc:date>
    </item>
  </channel>
</rss>

