<?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 Index Merge in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735841#M229236</link>
    <description>&lt;P&gt;Format your code, this is illegible. There's an icon for this to use when pasting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rsubmit;                                           %* send to remote host;
  data EMAIL ;                                     %* create table EMAIL;
    set UPDATE_EMAIL_LIST ;                        %* read table UPDATE_EMAIL_LIST ;
    set DCCLNT key=CLTEMAIL /unique;               %* read table DCCLNT using key CLTEMAIL ;
    if _ERROR_=0 then do;                          %* if a record is found in DCCLNT ;
      delete;                                      %* delete (i.e. ignore) the record read in UPDATE_EMAIL_LIST ;
    end;
    else do;                                       %* else ;
      _ERROR_=0;                                   %* reset _ERROR_ flag ; 
      output ;                                     %* save the record read in UPDATE_EMAIL_LIST ;
    end;
  run;
endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So in effect: keep all records from&amp;nbsp;&lt;CODE class=" language-sas"&gt;UPDATE_EMAIL_LIST &lt;/CODE&gt;&amp;nbsp;not present in&amp;nbsp;&lt;CODE class=" language-sas"&gt;DCCLNT &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 07:34:10 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-04-21T07:34:10Z</dc:date>
    <item>
      <title>SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735829#M229232</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp; data set&amp;nbsp;UPDATE_EMAIL_ltst&amp;nbsp; has&amp;nbsp;c_id, email_id variables&lt;/P&gt;
&lt;P&gt;The data set&amp;nbsp;dcclnt&amp;nbsp; has&amp;nbsp;c_id , email_id&amp;nbsp; and&amp;nbsp; p_c_id variables&lt;/P&gt;
&lt;P&gt;c_id, email_id are the key variables&lt;/P&gt;
&lt;P&gt;for the below query ,I am getting previous row&amp;nbsp; data for&amp;nbsp;p_c_id&amp;nbsp; instead the current record data.&lt;/P&gt;
&lt;P&gt;Can any one help with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;rsubmit;&lt;BR /&gt;data Email ;&lt;BR /&gt;set UPDATE_EMAIL_ltst ;&lt;BR /&gt;set dcclnt key=Clt_Email /unique;&lt;BR /&gt;if _error_=0 then&lt;BR /&gt;do;&lt;BR /&gt;delete;&lt;BR /&gt;end;&lt;BR /&gt;else do;&lt;BR /&gt;_error_=0; &lt;BR /&gt;output ;&lt;BR /&gt;end; &lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 06:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735829#M229232</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2021-04-21T06:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735836#M229234</link>
      <description>&lt;P&gt;Sample data, in the form of working data steps, please.&amp;nbsp; &amp;nbsp;Help us help you.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 06:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735836#M229234</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-04-21T06:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735838#M229235</link>
      <description>&lt;P&gt;OK, I figured this out without provision of sample data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;All variables retrieved via a SET statement are retained (i.e. held over to the next data step iteration (usually the next observaton).&lt;/LI&gt;
&lt;LI&gt;But a successful SET overwrites the retained values from the prior obs with new values.&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;An unsuccessful SET does NOT overwrite the retained values.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your unsuccessful SET /key=&amp;nbsp; &amp;nbsp; yields a non-zero _ERROR_ .&amp;nbsp; In such cases, you have chosen to reset _ERROR_ to zero, but you also need to set the retained P_C_ID to missing.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 07:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735838#M229235</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-04-21T07:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735841#M229236</link>
      <description>&lt;P&gt;Format your code, this is illegible. There's an icon for this to use when pasting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rsubmit;                                           %* send to remote host;
  data EMAIL ;                                     %* create table EMAIL;
    set UPDATE_EMAIL_LIST ;                        %* read table UPDATE_EMAIL_LIST ;
    set DCCLNT key=CLTEMAIL /unique;               %* read table DCCLNT using key CLTEMAIL ;
    if _ERROR_=0 then do;                          %* if a record is found in DCCLNT ;
      delete;                                      %* delete (i.e. ignore) the record read in UPDATE_EMAIL_LIST ;
    end;
    else do;                                       %* else ;
      _ERROR_=0;                                   %* reset _ERROR_ flag ; 
      output ;                                     %* save the record read in UPDATE_EMAIL_LIST ;
    end;
  run;
endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So in effect: keep all records from&amp;nbsp;&lt;CODE class=" language-sas"&gt;UPDATE_EMAIL_LIST &lt;/CODE&gt;&amp;nbsp;not present in&amp;nbsp;&lt;CODE class=" language-sas"&gt;DCCLNT &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 07:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735841#M229236</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-21T07:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735842#M229237</link>
      <description>&lt;P&gt;If I read that code correctly, you want to delete observations where the key is found in&amp;nbsp;&lt;SPAN&gt;dcclnt?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In which case, a hash solves the issue nicely without needing to rely on the indexes:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Email ;
set UPDATE_EMAIL_ltst;
if _n_ =1
then do;
  declare hash dcc (dataset:"dcclnt");
  dcc.definekey("Clt_Email");
  dcc.definedone();
end;
if dcc.find() ne 0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Apr 2021 07:38:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735842#M229237</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-21T07:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735850#M229239</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; &amp;nbsp;check() would be faster than find() here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; .&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 07:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735850#M229239</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-21T07:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735885#M229247</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data sample is below,the inputs and the output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="swathiprasad_0-1618996725191.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58445iE7B7DBD19B1BABE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="swathiprasad_0-1618996725191.png" alt="swathiprasad_0-1618996725191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Email Out put data set P_Email_id&amp;nbsp; should be&amp;nbsp; ideally &lt;A href="mailto:xyz1@gmail.com" target="_blank"&gt;xyz1@gmail.com&lt;/A&gt;&amp;nbsp;,where as it is abc@gmail.com&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 09:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735885#M229247</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2021-04-21T09:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735891#M229251</link>
      <description>&lt;P&gt;The code is below&lt;/P&gt;
&lt;P&gt;rsubmit;&lt;BR /&gt;data a;&lt;BR /&gt;input C_ID $ EMAIL_ID $20.;&lt;BR /&gt;cards;&lt;BR /&gt;C1 abc@gmail.com&lt;BR /&gt;C2 xyz@gmail.com&lt;/P&gt;
&lt;P&gt;;&lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;rsubmit;&lt;BR /&gt;data b(index=(Clt_Email=(C_ID email_id)));&lt;BR /&gt;input C_ID $ EMAIL_ID $5-18 P_EMAIL_ID $20-33&lt;BR /&gt;;&lt;BR /&gt;cards;&lt;BR /&gt;C1 abc@gmail.com abc@gmail.com&lt;BR /&gt;C11 abc1@gmail.com abc1@gmail.com&lt;BR /&gt;C2 xyz1@gmail.com xyz1@gmail.com&lt;/P&gt;
&lt;P&gt;;&lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;rsubmit;&lt;BR /&gt;data ab ;&lt;BR /&gt;set a ;&lt;BR /&gt;set b key=Clt_Email /unique;&lt;BR /&gt;if _error_=0 then&lt;BR /&gt;do;&lt;BR /&gt;delete;&lt;BR /&gt;end;&lt;BR /&gt;else do;&lt;BR /&gt;_error_=0; &lt;BR /&gt;output ;&lt;BR /&gt;end; &lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 09:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735891#M229251</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2021-04-21T09:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735900#M229254</link>
      <description>&lt;P&gt;This creates your expected dataset without indexes:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
input C_ID $ EMAIL_ID :$20.;
cards;
C1 abc@gmail.com
C2 xyz@gmail.com
;

data b;
input C_ID $ EMAIL_ID :$20. P_EMAIL_ID :$20.;
cards;
C1 abc@gmail.com abc@gmail.com
C11 abc1@gmail.com abc1@gmail.com
C2 xyz1@gmail.com xyz1@gmail.com
;

data ab;
set a;
if _n_ = 1
then do;
  length _email_id P_EMAIL_ID $20;
  declare hash b (dataset:"b (rename=(email_id=_email_id))");
  b.definekey("c_id");
  b.definedata("_email_id","p_email_id");
  b.definedone();
  call missing(_email_id,P_EMAIL_ID);
end;
if b.find() = 0 and _email_id = email_id then delete;
drop _:;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Apr 2021 10:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735900#M229254</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-21T10:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735901#M229255</link>
      <description>&lt;P&gt;Thanks Kurt ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I get the below error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Undeclared key symbol Clt_Email for hash object at line 1019 column 3.&lt;BR /&gt;ERROR: DATA STEP Component Object failure. Aborted during the EXECUTION phase.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 10:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735901#M229255</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2021-04-21T10:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735904#M229258</link>
      <description>&lt;P&gt;My code as posted &lt;STRONG&gt;works&lt;/STRONG&gt;. Just copy/paste and run it.&lt;/P&gt;
&lt;P&gt;Adapt it to your variables, or post example data with the real column names.&lt;/P&gt;
&lt;P&gt;Note that the hash keys only on the id and uses the email in a separate comparison.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 10:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735904#M229258</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-21T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735907#M229261</link>
      <description>&lt;P&gt;Thanks Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just used the same code as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The whole code is as below&lt;/P&gt;
&lt;P&gt;rsubmit;&lt;BR /&gt;data UPDATE_EMAIL_ltst(keep=client_id email_id );&lt;BR /&gt;set UPDATE_EMAIL;&lt;BR /&gt;email_id=upcase(event_value);&lt;BR /&gt;by client_id last_update_ts;&lt;BR /&gt;if last.client_id;&lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rsubmit;&lt;BR /&gt;data dcclnt(keep=client_id polisy_email_id email_id index=(Clt_Email=(client_id email_id)));&lt;BR /&gt;set data.dcclnt(rename=(clt_key=client_id) where=(valid_flag='1') );&lt;BR /&gt;email_id=upcase(email_id);&lt;BR /&gt;polisy_email_id=email_id;&lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rsubmit;&lt;BR /&gt;data Email_t;&lt;BR /&gt;set UPDATE_EMAIL_ltst;&lt;BR /&gt;if _n_ =1&lt;BR /&gt;then do;&lt;BR /&gt;declare hash dcc (dataset:"dcclnt");&lt;BR /&gt;dcc.definekey("client_id");&lt;BR /&gt;dcc.definedone();&lt;BR /&gt;end;&lt;BR /&gt;if dcc.find() ne 0;&lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error is below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Hash object added 32505840 items when memory failure occurred.&lt;BR /&gt;FATAL: Insufficient memory to execute DATA step program. Aborted during the EXECUTION phase.&lt;BR /&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 11:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735907#M229261</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2021-04-21T11:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735910#M229263</link>
      <description>Try using something, like _N_, as hash data. Otherwise the key is used again as data and it's probably quite long. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Apr 2021 11:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735910#M229263</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-21T11:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735911#M229264</link>
      <description>&lt;P&gt;How long is client_id defined? And what is your MEMSIZE option?&lt;/P&gt;
&lt;P&gt;A quick calculation shows me that your ~33 million observations should fit in about 1.5 GB of RAM, unless the variable is longer than expected.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 11:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735911#M229264</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-21T11:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735913#M229265</link>
      <description>Kurt, hash tables have a significant per-record overhead. Look for macro hashsize or hash_size in these pages. Sorry can't look from my phone. &lt;BR /&gt;</description>
      <pubDate>Wed, 21 Apr 2021 11:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735913#M229265</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-21T11:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735926#M229271</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Id is 10chars&lt;/P&gt;
&lt;P&gt;current MEMSIZE=2147483648&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 12:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/735926#M229271</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2021-04-21T12:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/736271#M229329</link>
      <description>&lt;P&gt;Hi Kurt ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the solution ,the problem with this approach is memory failure .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can we change the below&amp;nbsp; index merge query so that it will serve the purpose.&lt;/P&gt;
&lt;P&gt;rsubmit;&lt;BR /&gt;data ab ;&lt;BR /&gt;set a ;&lt;BR /&gt;set b key=Clt_Email /unique;&lt;BR /&gt;if _error_=0 then&lt;BR /&gt;do;&lt;BR /&gt;delete;&lt;BR /&gt;end;&lt;BR /&gt;else do;&lt;BR /&gt;_error_=0; &lt;BR /&gt;output ;&lt;BR /&gt;end; &lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 22:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/736271#M229329</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2021-04-21T22:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/736272#M229330</link>
      <description>&lt;P&gt;Try adding line&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;  dcc.definedata("_N_");
&lt;/LI-CODE&gt;
&lt;P&gt;to reduce the memory footprint,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 22:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/736272#M229330</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-21T22:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/736273#M229331</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the solution given ,but when ran it gives the memory failure error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can we change the below index merge query so that it will serve the purpose,which is fast as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rsubmit;
data ab  ;
set a ;
set b key=Clt_Email /unique;
if _error_=0 then
	             do;
                    delete;
	             end;
            else do;
			        _error_=0; 
                    output ;
		         end; 
run;
endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 22:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/736273#M229331</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2021-04-21T22:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index Merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/736274#M229332</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; Can any one help with this.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You now know what the code does. Wasn't that your question?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 22:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index-Merge/m-p/736274#M229332</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-21T22:10:49Z</dc:date>
    </item>
  </channel>
</rss>

