<?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>CharlotteCain Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>CharlotteCain Tracker</description>
    <pubDate>Sun, 24 May 2026 03:10:20 GMT</pubDate>
    <dc:date>2026-05-24T03:10:20Z</dc:date>
    <item>
      <title>Re: creating new columns from a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-new-columns-from-a-column/m-p/512667#M138095</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/39435"&gt;@lalohg&lt;/a&gt; Not appropriate to mark your own response. You should choose one of the two solutions you got and give them the credit!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 18:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-new-columns-from-a-column/m-p/512667#M138095</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2018-11-13T18:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating group data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-group-data/m-p/500854#M133440</link>
      <description>&lt;P&gt;The put function solution has been suggested twice in the same thread by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt; and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/225320"&gt;@Karen_Horton&lt;/a&gt;. Doesn't really help or make much difference in duplicating the same solution. For the benefit of wider community, I request to you kindly offer new alternatives rather. My 2 cents &amp;amp; Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 17:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-group-data/m-p/500854#M133440</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2018-10-02T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select (conditional) latest date using array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Select-conditional-latest-date-using-array/m-p/490179#M128178</link>
      <description>&lt;P&gt;Great solution. Super fast performance!!!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 17:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Select-conditional-latest-date-using-array/m-p/490179#M128178</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2018-08-27T17:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: I need explanation for this code and the macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-explanation-for-this-code-and-the-macro/m-p/476575#M122659</link>
      <description>&lt;P&gt;I would recommend reading this book&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/store/books/categories/usage-and-reference/carpenter-s-complete-guide-to-the-sas-macro-language-third-edition/prodBK_67815_en.html" target="_blank"&gt;https://www.sas.com/store/books/categories/usage-and-reference/carpenter-s-complete-guide-to-the-sas-macro-language-third-edition/prodBK_67815_en.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then I bet your understanding would be spot on!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 19:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-explanation-for-this-code-and-the-macro/m-p/476575#M122659</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2018-07-09T19:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: BASE SAS Logic help..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BASE-SAS-Logic-help/m-p/451725#M113935</link>
      <description>&lt;P&gt;All that mark was asking is to show what you have tried and get help to fix or modify your solution. That's all and it didn't sound rude at all. I have been told that too in the past and more in a rude manner by many but i took that as an affirmative. And yes, many users do get here taking advantage of other's time. Unfortunately that happens all the time.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 00:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BASE-SAS-Logic-help/m-p/451725#M113935</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2018-04-06T00:10:59Z</dc:date>
    </item>
    <item>
      <title>help request in understanding indirect macro variable references?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/help-request-in-understanding-indirect-macro-variable-references/m-p/418529#M102821</link>
      <description>&lt;P&gt;help request in indirect macro variable references?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let city1=london;&lt;/P&gt;
&lt;P&gt;%let city2=frankfurt&lt;/P&gt;
&lt;P&gt;%let city3=paris;&lt;/P&gt;
&lt;P&gt;%let n=1;&lt;/P&gt;
&lt;P&gt;Please correct my understnding:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;amp;&amp;amp;city&amp;amp;n would resolves to &amp;amp;city1--&amp;gt; this resolves to london. Ok.&lt;/P&gt;
&lt;P&gt;Looping the n one by one will get the above city names. Fine&lt;/P&gt;
&lt;P&gt;so I suppose &amp;amp;&amp;amp; resolves to &amp;amp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What baffles me is use of more than &amp;amp;&amp;amp; ampersands and resolving many other vars with multiple ampersands(&amp;amp;&amp;amp;&amp;amp;&amp;amp;) I vaguely remember reading an example on SAS documentation something dog resolves to cat and cat resolves to monkey or something like that. Should any experts lend their time in helping me understand this concept, I will most appreciate it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Charlotte&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 16:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/help-request-in-understanding-indirect-macro-variable-references/m-p/418529#M102821</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2017-12-05T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a teradata table using SAS access?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-update-a-teradata-table-using-SAS-access/m-p/347130#M80138</link>
      <description>&lt;P&gt;Thank you Xia, &amp;nbsp;I hope you are keeping well.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;OR you could try PASS-THROUGH sql, but you need to know TD 's sql.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;proc sql;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;connect to teradata.......&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;execute (......)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;by teradata&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's the understanding I needed. A TD sql in the execute did the job. I really &lt;STRONG&gt;appreciate&lt;/STRONG&gt; it. Take care!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 17:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-update-a-teradata-table-using-SAS-access/m-p/347130#M80138</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2017-04-04T17:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a teradata table using SAS access?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-update-a-teradata-table-using-SAS-access/m-p/346903#M80039</link>
      <description>&lt;P&gt;I didn't try MLOAD. I have been trying UPDATE statement yes. I wonder whether it is possible to execute a teradata query using proc sql access. If yes, I just don't know how. I am unable to find some examples online.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 02:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-update-a-teradata-table-using-SAS-access/m-p/346903#M80039</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2017-04-04T02:55:45Z</dc:date>
    </item>
    <item>
      <title>How to update a teradata table using SAS access?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-update-a-teradata-table-using-SAS-access/m-p/346731#M79985</link>
      <description>&lt;P&gt;&lt;STRONG&gt;How to update a teradata table using SAS access&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two teradata tables:&lt;/P&gt;
&lt;P&gt;Table 1:&lt;/P&gt;
&lt;P&gt;Id &amp;nbsp; Col1 &amp;nbsp; &amp;nbsp;Col2&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;y&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b&lt;/P&gt;
&lt;P&gt;2 &amp;nbsp; &amp;nbsp; x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;y&lt;/P&gt;
&lt;P&gt;3 &amp;nbsp; &amp;nbsp;g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;h&lt;/P&gt;
&lt;P&gt;4 &amp;nbsp; &amp;nbsp;x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;y&lt;/P&gt;
&lt;P&gt;4 &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table 2:&lt;/P&gt;
&lt;P&gt;ID &amp;nbsp; Remark &amp;nbsp; &amp;nbsp;Date&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; complete &amp;nbsp; 02jan2004&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; pending &amp;nbsp; &amp;nbsp; 06jan2004&lt;/P&gt;
&lt;P&gt;2 &amp;nbsp; &amp;nbsp; complete &amp;nbsp; &amp;nbsp;08jan2005&lt;/P&gt;
&lt;P&gt;3 &amp;nbsp; &amp;nbsp;pending &amp;nbsp; &amp;nbsp; &amp;nbsp;08feb2005&lt;/P&gt;
&lt;P&gt;3 &amp;nbsp; &amp;nbsp;pending &amp;nbsp; &amp;nbsp; &amp;nbsp;07mar2005&lt;/P&gt;
&lt;P&gt;3 &amp;nbsp; pending &amp;nbsp; &amp;nbsp; &amp;nbsp;09mar2005&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I neeed the remark column with the max of date to be updated to table 1. Suppose if those were sas datasets, the code is pretty easy:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;select a.*, b.remark&lt;/P&gt;
&lt;P&gt;from table1 a&lt;/P&gt;
&lt;P&gt;left join&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(select distinct id, remark, max(date) as max_date from table2&lt;/P&gt;
&lt;P&gt;group by id;&lt;/P&gt;
&lt;P&gt;having date=max_date) b&lt;/P&gt;
&lt;P&gt;on a.id=b.id;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I my tables are teradate tables, I find the &lt;STRONG&gt;SAS access execute statement&lt;/STRONG&gt; pretty challenging. Can anybody help?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 15:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-update-a-teradata-table-using-SAS-access/m-p/346731#M79985</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2017-04-03T15:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: any programmatic way to compute sets/probabilities the problem perhaps with a SAS function?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/any-programmatic-way-to-compute-sets-probabilities-the-problem/m-p/305125#M65054</link>
      <description>&lt;P&gt;Good evening Genius &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt; and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats﻿&lt;/a&gt; &amp;nbsp; Thank you so much for the help. Well, I honestly didn't realise this could have posted in IML forum. Both, Amazingly elegant approach and neat. PG Sir, I wanted in a new variable just for reading ease and your understaing was right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xia, Sorry for the late response as I am aware by the time I get home from work and attending afternoon college, you must be sleeping in China. I will study&amp;nbsp; your code over night, understand and will follow up with you if i don't understand some parts. And I trust I can bother PG while you are asleep if he stays warm enough in freezing Canada &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As always I can't thank you enough,&lt;/P&gt;
&lt;P&gt;Regards from England,&lt;/P&gt;
&lt;P&gt;Charlotte&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Btw, Can you share me a link to the detailed documentation of IML&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 15:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/any-programmatic-way-to-compute-sets-probabilities-the-problem/m-p/305125#M65054</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2016-10-17T15:49:51Z</dc:date>
    </item>
    <item>
      <title>any programmatic way to compute sets/probabilities the problem perhaps with a SAS function?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/any-programmatic-way-to-compute-sets-probabilities-the-problem/m-p/304914#M64979</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;any programmatic way to compute the problem perhaps with a SAS function?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="yui_3_16_0_ym19_1_1476612425436_3088" class="body undoreset" tabindex="0"&gt;
&lt;DIV id="yui_3_16_0_ym19_1_1476612425436_3087" class="email-wrapped"&gt;
&lt;DIV id="yiv0805077703"&gt;
&lt;DIV id="yui_3_16_0_ym19_1_1476612425436_3086"&gt;
&lt;DIV id="yui_3_16_0_ym19_1_1476612425436_3085"&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3041"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3042" dir="ltr"&gt;Let x be the set of possible outcomes from rolling a dice twice, x = {(a, b) : a, b ∈ {1, 2, 3, 4, 5, 6}}.&lt;/DIV&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3042" dir="ltr"&gt;&amp;nbsp;Let A be the subset of x given by {(a, b) ∈ x : a + b ≥ 10} and let B be the subset {(a, b) ∈ x : a = 5}.&lt;/DIV&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3042" dir="ltr"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3042" dir="ltr"&gt;&amp;nbsp;(a) Write the sets A and B in a new variable&lt;/DIV&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3042" dir="ltr"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3042" dir="ltr"&gt;&amp;nbsp;(b) Write A and B in list form (i.e. as a list of elements enclosed in {. . .}).&lt;/DIV&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3042" dir="ltr"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3042" dir="ltr"&gt;&amp;nbsp;(c) Write A ∪ B, A ∩ B and A \ B in list form in new variable&lt;/DIV&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3042" dir="ltr"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="yiv0805077703yui_3_16_0_ym19_1_1476596005972_3042" dir="ltr"&gt;&amp;nbsp;(d) write&amp;nbsp;the set x \ A in in a new var.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Oct 2016 10:11:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/any-programmatic-way-to-compute-sets-probabilities-the-problem/m-p/304914#M64979</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2016-10-16T10:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: A Macro question on a concept that I would like to understand, Please?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-Macro-question-on-a-concept-that-I-would-like-to-understand/m-p/269039#M269422</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin﻿&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding﻿&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh﻿&lt;/a&gt;&amp;nbsp; for making me clearly understand the concept and sorry for the bother on a saturday(haha). Well, macro programming is very intriguing as it seems to me a layer on top the SAS codes that generates extra texts, resolution of macro references, and the passage of macro compilation/compilation to SAS compiler is a beauty tale. I am loving it. Thanks once again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Charlotte&lt;/P&gt;
&lt;P&gt;PS There is another concept(indirect references) that makes my brain crazy. I will post that as a new question later&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2016 23:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-Macro-question-on-a-concept-that-I-would-like-to-understand/m-p/269039#M269422</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2016-05-07T23:54:09Z</dc:date>
    </item>
    <item>
      <title>A Macro question on a concept that I would like to understand, Please?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-Macro-question-on-a-concept-that-I-would-like-to-understand/m-p/268987#M269418</link>
      <description>&lt;P&gt;I would like to understand how the macro processor looks up the global symbol table when resolving the second %put outside statement. If my understanding is correct, the first %let assigns a value of 1 in the global symbol table, however when forcing the same name as a local within a macro definition, what really happens? Does it create another macro variable with the same name in the local symbol table when a macro variable with the same name exists in the global symbol table? Any chance of overlap or ambiguity here? I would appreciate if somebody can explain the mechanism at length, please and thanks!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Charlotte from England&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="codeBlock"&gt;
&lt;PRE class="code"&gt;%let variable=1;
%macro routine;
   %put ***** Beginning ROUTINE *****;
   %local variable;
   %let variable=2;
   %put The value of variable inside ROUTINE is &amp;amp;variable;
   %put ***** Ending ROUTINE *****;
%mend routine;
%routine
%put The value of variable outside ROUTINE is &amp;amp;variable;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&lt;A name="p1d9cprcec8t9mn19jg3wws12irb" target="_blank"&gt;&lt;/A&gt;Submitting these statements writes these lines to the SAS log:
&lt;PRE class="outputFragment"&gt;***** Beginning ROUTINE *****
The value of variable inside ROUTINE is 2
***** Ending ROUTINE *****
The value of variable outside ROUTINE is 1&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 07 May 2016 09:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-Macro-question-on-a-concept-that-I-would-like-to-understand/m-p/268987#M269418</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2016-05-07T09:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting efficient solution to compare by groups look ahead values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Requesting-efficient-solution-to-compare-by-groups-look-ahead/m-p/248182#M46596</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;&amp;nbsp;Yes Xia, I know you would be gone for Chinese new year holidays to your home town right? I remember you did the same last year &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . I was anyway going to wish you by sending you a peronal greetings email to you, but anyway since you mentioned that I wish you a fantastic chinese new year that brings hope, joy, happiness and peace. Thank you for everything and enjoy your break!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll be anxiously waiting for your return. Take care and stay safe!,&lt;/P&gt;
&lt;P&gt;Charlotte&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 07:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Requesting-efficient-solution-to-compare-by-groups-look-ahead/m-p/248182#M46596</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2016-02-05T07:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting efficient solution to compare by groups look ahead values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Requesting-efficient-solution-to-compare-by-groups-look-ahead/m-p/248162#M46591</link>
      <description>Thank you Xia, You are too too too Brilliant!!. The SAS world envy you and in many cases I have noticed here, if nobody can solve a problem,only  Xia Keshan  can. Many people  have said this and I say this too many times. You are blessed and gifted talent and thank you for being a true dear friend. You have helped me so much</description>
      <pubDate>Fri, 05 Feb 2016 05:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Requesting-efficient-solution-to-compare-by-groups-look-ahead/m-p/248162#M46591</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2016-02-05T05:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting efficient solution to compare by groups look ahead values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Requesting-efficient-solution-to-compare-by-groups-look-ahead/m-p/247902#M46512</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;&amp;nbsp;Good morning Xia, It's very nice to just wake up to your solution as always. I am &lt;STRONG&gt;really sorry&amp;nbsp;&lt;/STRONG&gt;for using too many words and please accept my apology for that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the data is sorted by store_id product_id and monthly_period(sorted by date and then i took month of date using month function) and the result should be in the order store_id monthy_period once the comparison is done for product_win_point variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you as always, and I hope you are well?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Charlotte&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 04:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Requesting-efficient-solution-to-compare-by-groups-look-ahead/m-p/247902#M46512</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2016-02-04T04:16:15Z</dc:date>
    </item>
    <item>
      <title>Requesting efficient solution to compare by groups look ahead values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Requesting-efficient-solution-to-compare-by-groups-look-ahead/m-p/247814#M46473</link>
      <description>&lt;P&gt;Dear SAS Folks, I request your help for an efficient solution for a very large dataset that challenges to compare to By-groups within by groups.&lt;/P&gt;
&lt;P&gt;Here is the sample of my input data-set(have) with 5 columns:&lt;BR /&gt;STORE_ID PRODUCT_ID PRODUCT_WIN_POINT1 PRODUCT_WIN_POINT2 MONTHLY_PERIOD&lt;BR /&gt;W169 F1 1 0 jan&lt;BR /&gt;W169 F1 0 1 feb&lt;BR /&gt;W169 F1 0 0 mar&lt;BR /&gt;W169 F1 1 1 apr&lt;BR /&gt;W169 F1 0 0 may&lt;BR /&gt;W169 F1 1 1 jun&lt;BR /&gt;W169 V1 0 1 jan&lt;BR /&gt;W169 V1 1 1 feb&lt;BR /&gt;W169 V1 1 0 mar&lt;BR /&gt;W169 V1 1 0 apr&lt;BR /&gt;W169 V1 0 1 may&lt;BR /&gt;W169 V1 0 1 Jun&lt;BR /&gt;W169 T1 0 1 jan&lt;BR /&gt;W169 T1 1 0 feb&lt;BR /&gt;W169 R1 0 1 mar&lt;BR /&gt;W169 R1 0 0 may&lt;BR /&gt;W169 R1 0 1 jun&lt;BR /&gt;B291 B3 1 0 jan&lt;BR /&gt;B291 B2 1 1 jun&lt;BR /&gt;B291 B44 0 1 july&lt;/P&gt;
&lt;P&gt;The need is to compare PRODUCT_ID values against MONTHLY_PERIOD within STORE_ID values.&lt;BR /&gt;Details:&lt;BR /&gt;Point1: For each STORE_ID, I need to compare PRODUCT_ID F1(product_win_point1 value) to the V1(product_win_point1 value) to the T1(product_win_point1 value) and similarly across all product_id's within a store_id that has values for the month of Jan. In the example above, you would notice there is no product_win_point1 and product_win_point2 value of R1 for the month of Jan.&lt;/P&gt;
&lt;P&gt;Point2: Likewise, feb (product_win_point1) value of product id's needs to be compared as explained in point1. And the same exercise should be done for all months available, that is jan to jan, feb to feb, mar to mar........&lt;/P&gt;
&lt;P&gt;Point3: Comparison logic--&amp;gt; For example, When comparing the values of product_win_point1 across months, let's say taking the example above:&lt;BR /&gt;For store_id W169,for the month of Jan, the product_win_point1 value for product_id F1=1, V1=0, T1=0,R1 is missing. Since there is at-least one product_win_point1 with value 1, the result should be stored as 1 for the month Jan. Likewise the same rule applies when comparing product_win_point1 values of product id's for feb against feb, mar against mar......&lt;/P&gt;
&lt;P&gt;Point4: The same comparison logic as mentioned in Point1,2 &amp;amp; 3 has to be applied for PRODUCT_WIN_POINT2 values of product_ids against monthly periods.&lt;/P&gt;
&lt;P&gt;I trust the points explained above can be comprehended and if not I am so keen to detail further whatever i can.&lt;/P&gt;
&lt;P&gt;So, the final resulting WANT(Output) dataset:&lt;/P&gt;
&lt;P&gt;WANT: &lt;BR /&gt;STORE_ID MONTHLY_PERIOD MONTH_as_number COMPARED_PRODUCT_WIN_POINT1 COMPARED_PRODUCT_WIN_POINT2&lt;BR /&gt;W169 jan 1 1 1&lt;BR /&gt;W169 feb 2 1 1&lt;BR /&gt;W169 mar 3 1 1&lt;BR /&gt;W169 apr 4 1 1&lt;BR /&gt;W169 may 5 0 1&lt;BR /&gt;W169 jun 6 1 1&lt;BR /&gt;B291 jan 1 1 0&lt;BR /&gt;B291 jun 6 1 1&lt;BR /&gt;B291 july 7 0 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 18:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Requesting-efficient-solution-to-compare-by-groups-look-ahead/m-p/247814#M46473</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2016-02-03T18:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Conversion/m-p/241048#M44598</link>
      <description>&lt;P&gt;Hi Bob, May i request you to please enlighten me on the differences between applying $w. format and just like 8. format without the dollar sign. Also, &amp;nbsp;does applying an x amount of width caters to values less than the number of bytes in the value?&lt;/P&gt;
&lt;P&gt;This confuses me big time:(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the bother and merry christmas and happy new year to you,&lt;/P&gt;
&lt;P&gt;Charlotte&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 18:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Conversion/m-p/241048#M44598</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2015-12-28T18:19:36Z</dc:date>
    </item>
    <item>
      <title>How to the solve the look solution of this problem with very very large dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-the-solve-the-look-solution-of-this-problem-with-very/m-p/236267#M308592</link>
      <description>&lt;P&gt;How to the solve the look solution of this problem with &lt;STRONG&gt;very very large datase&lt;/STRONG&gt;t?&lt;/P&gt;
&lt;P&gt;I have a two datasets, dataset1 and dataset2.&lt;/P&gt;
&lt;P&gt;dataset1 has&amp;nbsp;&lt;/P&gt;
&lt;P&gt;client_id var1_var25 (so in total 26 variables)/8client_id is the key and is unique but not ordered */&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;P&gt;6&lt;/P&gt;
&lt;P&gt;9&lt;/P&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset2 has &amp;nbsp;duplicate client_ids/* obviously coz the dataset has daily balances of bank customers for the last so many months*/&lt;/P&gt;
&lt;P&gt;client_id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;daily_balances&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14/10/2014 &amp;nbsp; &amp;nbsp;5000 &amp;nbsp; &amp;nbsp; /*some date and daily balances of clients until end of file*/&lt;/P&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Q1. I need to simply to do a left join to get the daily balances in dataset1 coz i want the daily balances of only those client_id's of dataset1? The problem is that that dataset2 has over 250 million records and dataset1 has a million records. Any &lt;STRONG&gt;efficient solution &lt;/STRONG&gt;with SAS 9.2 please?&lt;/P&gt;
&lt;P&gt;Q2. I want the last balance of each client_id, just as simple as to sort and last.id after the join?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no clue how to manage the look up dataset1&lt;STRONG&gt;(with 1 million records) to &amp;nbsp;dataset2(with 250 million records)&lt;/STRONG&gt;. I'd appreciate any help please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 20:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-the-solve-the-look-solution-of-this-problem-with-very/m-p/236267#M308592</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2015-11-24T20:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Request for Efficent look up from one to many datasets?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Request-for-Efficent-look-up-from-one-to-many-datasets/m-p/229963#M41654</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13759"&gt;@MikeZdeb﻿&lt;/a&gt;&amp;nbsp;Thank you so much Sir! for adding the comments. I really really appreciate. Sorry for the bother. Have a great day!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 18:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Request-for-Efficent-look-up-from-one-to-many-datasets/m-p/229963#M41654</guid>
      <dc:creator>CharlotteCain</dc:creator>
      <dc:date>2015-10-14T18:59:33Z</dc:date>
    </item>
  </channel>
</rss>

