<?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 Leading Blank to specific Observation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-Leading-Blank-to-specific-Observation/m-p/241203#M44679</link>
    <description>&lt;P&gt;As long as your variable's length is long enough, you can use :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;have='  '||have;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Otherwise you need expand its length long enough.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length want $ 200;
want='  '||have;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Dec 2015 06:56:21 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2015-12-30T06:56:21Z</dc:date>
    <item>
      <title>Adding Leading Blank to specific Observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-Leading-Blank-to-specific-Observation/m-p/241201#M44678</link>
      <description>&lt;P&gt;How can I add a leading blank to selected observation of a variable.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 06:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-Leading-Blank-to-specific-Observation/m-p/241201#M44678</guid>
      <dc:creator>mgowtham24</dc:creator>
      <dc:date>2015-12-30T06:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Leading Blank to specific Observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-Leading-Blank-to-specific-Observation/m-p/241203#M44679</link>
      <description>&lt;P&gt;As long as your variable's length is long enough, you can use :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;have='  '||have;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Otherwise you need expand its length long enough.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length want $ 200;
want='  '||have;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Dec 2015 06:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-Leading-Blank-to-specific-Observation/m-p/241203#M44679</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-12-30T06:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Leading Blank to specific Observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-Leading-Blank-to-specific-Observation/m-p/241206#M44680</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can align it to Right so that it will have leading blanks. But will it solve your query.Could you please elaborate your exact problem with&amp;nbsp;more details. Following code can align value of selected variable to right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data person;&lt;BR /&gt;infile datalines delimiter=',';&lt;BR /&gt;input name $ dept $ value value1;&lt;BR /&gt;datalines;&lt;BR /&gt;John,Sales,-200,200&lt;BR /&gt;Mary,Accounts,-500,300&lt;BR /&gt;Johny,Sales,-200,200&lt;BR /&gt;Mak,Accounts,-100,100&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data person;&lt;BR /&gt;set person;&lt;BR /&gt;name=right(name);&lt;BR /&gt;dept=right(dept);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 07:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-Leading-Blank-to-specific-Observation/m-p/241206#M44680</guid>
      <dc:creator>ad123123</dc:creator>
      <dc:date>2015-12-30T07:27:06Z</dc:date>
    </item>
  </channel>
</rss>

