<?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: Sas mainframe data filename older rec deletion in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687181#M208600</link>
    <description>&lt;P&gt;I would simplify it, and use a subsetting IF:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if refdt gt today() - 180;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:40:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-09-28T12:40:53Z</dc:date>
    <item>
      <title>Sas mainframe data filename older rec deletion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687170#M208593</link>
      <description>&lt;PRE&gt;DATA ML1;                 
INFILE CARDS;             
INPUT @1 FILENAME $CHAR10.
      @12 REFDT YYMMDD8.; 
CARDS;                    
LOAN_CREA 20/09/20        
LOAN_UPDT 18/09/20        
LOAN_MAIN 19/09/20        
 ;                         
RUN;      
DATA DEL;                                                    
SET ML1;                                                     
PUT @1 ' DELETE ' FILENAME;                                  
RUN;  &lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Hi All plz look above code i am facing one issue i want to delete older filename not recent one kindly find below my requirement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;My Req is : &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAN_UPDT&lt;BR /&gt;LOAN_MAIN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:46:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687170#M208593</guid>
      <dc:creator>rohitkrishna</dc:creator>
      <dc:date>2020-09-28T11:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sas mainframe data filename older rec deletion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687173#M208595</link>
      <description>&lt;P&gt;How do you derive the cutoff date?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687173#M208595</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-28T12:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sas mainframe data filename older rec deletion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687176#M208598</link>
      <description>&lt;P&gt;Hi Kurtbremser,&lt;/P&gt;&lt;P&gt;Thanks for the quick response , as per below conversation i tried with one statement but it didn't work plz find below code&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IF REFDT LE INTNX('DAY', TODAY(),-180) THEN DELETE;&lt;/PRE&gt;&lt;P&gt;kindly share some solution for the above code issue&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rohit&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687176#M208598</guid>
      <dc:creator>rohitkrishna</dc:creator>
      <dc:date>2020-09-28T12:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sas mainframe data filename older rec deletion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687179#M208599</link>
      <description>&lt;P&gt;What happened to make you say it didn't work? Please explain further. SHOW US what is wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is an error in the log, please show us the entire log for the DATA step, including code in the log, and all NOTEs, WARNINGs and ERRORs. Please paste the log as text into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687179#M208599</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-28T12:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sas mainframe data filename older rec deletion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687181#M208600</link>
      <description>&lt;P&gt;I would simplify it, and use a subsetting IF:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if refdt gt today() - 180;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-mainframe-data-filename-older-rec-deletion/m-p/687181#M208600</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-28T12:40:53Z</dc:date>
    </item>
  </channel>
</rss>

