<?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 How to delete one line from multiple SAS programs? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-one-line-from-multiple-SAS-programs/m-p/132888#M27039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to delete the same line from many SAS PROGRAMS. is there a easy way to do it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 21:13:30 GMT</pubDate>
    <dc:creator>sandyming</dc:creator>
    <dc:date>2013-05-08T21:13:30Z</dc:date>
    <item>
      <title>How to delete one line from multiple SAS programs?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-one-line-from-multiple-SAS-programs/m-p/132888#M27039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to delete the same line from many SAS PROGRAMS. is there a easy way to do it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 21:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-one-line-from-multiple-SAS-programs/m-p/132888#M27039</guid>
      <dc:creator>sandyming</dc:creator>
      <dc:date>2013-05-08T21:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete one line from multiple SAS programs?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-one-line-from-multiple-SAS-programs/m-p/132889#M27040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What tools do you have? sed should be able to do.&lt;/P&gt;&lt;P&gt;Since they are SAS programs why not use SAS to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length infile outfile $200 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; infile '*.sas' filename=infile ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; outfile = cats(infile,'.new');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; file new filevar=outfile;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if _infile_^='DELETE THIS LINE;' then put _infile_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 22:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-one-line-from-multiple-SAS-programs/m-p/132889#M27040</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-08T22:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete one line from multiple SAS programs?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-one-line-from-multiple-SAS-programs/m-p/132890#M27041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain in detail about your requirement with an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 09:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-one-line-from-multiple-SAS-programs/m-p/132890#M27041</guid>
      <dc:creator>Sudhakar_A</dc:creator>
      <dc:date>2013-05-09T09:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete one line from multiple SAS programs?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-one-line-from-multiple-SAS-programs/m-p/132891#M27042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use Tom's approach make sure the length, the $200, actually covers the length of ALL lines in the files.&lt;/P&gt;&lt;P&gt;I know that programs really shouldn't have lines that long but occasional things like datalines may exceed that expectation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 14:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-one-line-from-multiple-SAS-programs/m-p/132891#M27042</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-05-09T14:30:18Z</dc:date>
    </item>
  </channel>
</rss>

