<?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: Adding trailing blanks to alphanumeric characters in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183760#M46745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length b $20;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a="ABCD1234";&lt;/P&gt;&lt;P&gt;&amp;nbsp; b=a;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 16:10:17 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2014-11-24T16:10:17Z</dc:date>
    <item>
      <title>Adding trailing blanks to alphanumeric characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183758#M46743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Adding trailing blanks to alphanumeric characters SAS code &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183758#M46743</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2014-11-24T15:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding trailing blanks to alphanumeric characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183759#M46744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length b $200;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a="ABCD1234";&lt;/P&gt;&lt;P&gt;&amp;nbsp; b=repeat("0",20-length(strip(a)))||strip(a);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For trailing, just move the strip(a) before the repeat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:56:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183759#M46744</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-24T15:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding trailing blanks to alphanumeric characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183760#M46745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length b $20;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a="ABCD1234";&lt;/P&gt;&lt;P&gt;&amp;nbsp; b=a;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183760#M46745</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-11-24T16:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding trailing blanks to alphanumeric characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183761#M46746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, trailing &lt;STRONG&gt;blanks, &lt;/STRONG&gt;I should read the question more thoroughly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183761#M46746</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-24T16:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding trailing blanks to alphanumeric characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183762#M46747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;i want to export to Csv file after coding &lt;/P&gt;&lt;P&gt;sso we use something like dat_null_&lt;/P&gt;&lt;P&gt;AAnd put function now length is $12.&lt;/P&gt;&lt;P&gt;and it shd be A25 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183762#M46747</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2014-11-24T16:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding trailing blanks to alphanumeric characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183763#M46748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using DATA _NULL_ and a PUT statement to write out the data, it is easy to write out trailing blanks.&amp;nbsp; Add a format specification to the PUT statement, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put varname $25. ','&amp;nbsp; ... more variables ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will write a total of 25 characters for VARNAME, including trailing blanks as needed to reach that length of 25.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183763#M46748</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-11-24T16:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding trailing blanks to alphanumeric characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183764#M46749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why?&amp;nbsp; You mention writing a CSV, but by definition a CSV file would normally NOT have trailing blanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 17:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-trailing-blanks-to-alphanumeric-characters/m-p/183764#M46749</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-11-24T17:33:41Z</dc:date>
    </item>
  </channel>
</rss>

