<?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: Drop Observations with the Leading Spaces in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Drop-Observations-with-the-Leading-Spaces/m-p/556006#M74727</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards ;
input ID +2	Address $char30.;
cards;
1  	1650 OCEAN PKWY
2	   1651 SEA PKWY
3	 1652 RIVER PKWY
;


data want;
set have;
if  substr(address,1,3)='  ' then delete;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 May 2019 16:52:02 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-05-03T16:52:02Z</dc:date>
    <item>
      <title>Drop Observations with the Leading Spaces</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Drop-Observations-with-the-Leading-Spaces/m-p/556005#M74726</link>
      <description>&lt;P&gt;Greetings Community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column in my dataset that has multiple&amp;nbsp;leading spaces. In case that the observation has&amp;nbsp;THREE leading spaces, I want to drop that observation. Otherwise, keep.&amp;nbsp;Here is what I have:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Address&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1650 OCEAN PKWY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 1651 SEA PKWY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;1652 RIVER PKWY&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I need:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Address&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1650 OCEAN PKWY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;1652 RIVER PKWY&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 16:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Drop-Observations-with-the-Leading-Spaces/m-p/556005#M74726</guid>
      <dc:creator>altijani</dc:creator>
      <dc:date>2019-05-03T16:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Observations with the Leading Spaces</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Drop-Observations-with-the-Leading-Spaces/m-p/556006#M74727</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards ;
input ID +2	Address $char30.;
cards;
1  	1650 OCEAN PKWY
2	   1651 SEA PKWY
3	 1652 RIVER PKWY
;


data want;
set have;
if  substr(address,1,3)='  ' then delete;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 May 2019 16:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Drop-Observations-with-the-Leading-Spaces/m-p/556006#M74727</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-05-03T16:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Observations with the Leading Spaces</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Drop-Observations-with-the-Leading-Spaces/m-p/556032#M74728</link>
      <description>&lt;P&gt;Or&lt;/P&gt;
&lt;PRE&gt;data want;
set have;
if  address=:'  ' then delete;
run;&lt;/PRE&gt;
&lt;P&gt;The =: is a "begins with"&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 17:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Drop-Observations-with-the-Leading-Spaces/m-p/556032#M74728</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-03T17:55:20Z</dc:date>
    </item>
  </channel>
</rss>

