<?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: how to create the list of variables common to both var-list-1 and var-list-2. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198413#M49593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't test it, but it seems to me if your scenario came as is, a small tweak to the solution of your precious&amp;nbsp; question should do,&lt;/P&gt;&lt;P&gt;%LET large=a b c d e f g h i j k;&lt;/P&gt;&lt;P&gt;%LET exclude=c d h k m n;&lt;/P&gt;&lt;P&gt;%let final=%sysfunc(compress(&amp;amp;large,&amp;amp;exclude.,k));&lt;/P&gt;&lt;P&gt;%put final=&amp;amp;final;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2015 20:55:40 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2015-03-10T20:55:40Z</dc:date>
    <item>
      <title>how to create the list of variables common to both var-list-1 and var-list-2.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198408#M49588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a new variable list that is common to to the other two variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-position: initial;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Courier New'; background-position: initial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt;large=a b c d e f g h i j k;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-position: initial;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Courier New'; background-position: initial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt;exclude=c d h k m n;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt;I want to get a new variable, that only keeps the common variable list between large and exclude, that is, %let common=&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 13.3333330154419px; background-color: #ffffff;"&gt;c d h k.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px; background-color: #ffffff; font-family: 'Courier New'; background-position: initial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px; background-color: #ffffff; font-family: 'Courier New'; background-position: initial;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px; background-color: #ffffff; font-family: 'Courier New'; background-position: initial;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 19:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198408#M49588</guid>
      <dc:creator>Sunny_Sun</dc:creator>
      <dc:date>2015-03-10T19:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to create the list of variables common to both var-list-1 and var-list-2.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198409#M49589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what you need?&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select name into:common separated by ' ' from dictionary.columns where libname='WORK' and memname='LARGE' and upcase(name) in (select upcase(name) from dictionary.columns where libname='WORK' and memname='EXCLUDE');&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 20:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198409#M49589</guid>
      <dc:creator>slchen</dc:creator>
      <dc:date>2015-03-10T20:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to create the list of variables common to both var-list-1 and var-list-2.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198410#M49590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a macro that returns the list of common fields.&amp;nbsp; You may have to add %UPCASE here and there, if you want "a" and "A" to represent a match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro common (list1, list2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %local i nextname common;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %do i=1 %to %sysfunc(countw(&amp;amp;list1));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let nextname = %scan(&amp;amp;list1, &amp;amp;i);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %if %index(%str( &amp;amp;list2 ), %str( &amp;amp;nextname ))&amp;nbsp; %then %let common = &amp;amp;common &amp;amp;nextname;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;amp;common&lt;/P&gt;&lt;P&gt;%mend common;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would use the macro reference wherever you wanted to see the list of common variable names.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let common = %common(&amp;amp;list1, &amp;amp;list2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;array comvars {*} %common(&amp;amp;list1, &amp;amp;list2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro's output is the text consisting of the common names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 20:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198410#M49590</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-03-10T20:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to create the list of variables common to both var-list-1 and var-list-2.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198411#M49591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks. This is exactly what I am looking for. Thanks again for your great help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 20:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198411#M49591</guid>
      <dc:creator>Sunny_Sun</dc:creator>
      <dc:date>2015-03-10T20:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to create the list of variables common to both var-list-1 and var-list-2.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198412#M49592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the macro from your other thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; class;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; sashelp.class(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;obs&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;retain&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; a b c d e &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'x'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; f g h i j k m n &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;page&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; list1=a b c d e f g h i j k;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; list2=c d h k m n;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; subset=%expand_varlist(data=class,keep=&amp;amp;list2,outexpr=quote(strip(_name_)));&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; common=%expand_varlist(data=class,keep=&amp;amp;list1,where=_name_ in(&amp;amp;subset));&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; NOTE: "&amp;amp;=List1" with "&amp;amp;=list2" common variables is "&amp;amp;common";&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Log:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; list1=a b c d e f g h i j k;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;105&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; list2=c d h k m n;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;106&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;107&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; subset=%expand_varlist(data=class,keep=&amp;amp;list2,outexpr=quote(strip(_name_)));&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;NOTE: &lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Macro(EXPAND_VARLIST) retured: &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"""c"" ""d"" ""h"" ""k"" ""m"" ""n"""&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;108&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; common=%&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #000000; background-color: #ffffff;"&gt;expand_varlist&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;(data=class,keep=&amp;amp;list1,where=_name_ in(&amp;amp;subset));&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;NOTE: Macro(EXPAND_VARLIST) retured: &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"c d h k"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;109&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; NOTE: &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"&amp;amp;=List1"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; with &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"&amp;amp;=list2"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; common variables is &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"&amp;amp;common"&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;NOTE: &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"LIST1=a b c d e f g h i j k"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; with &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"LIST2=c d h k m n"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; common variables is &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"c d h k"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 20:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198412#M49592</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-03-10T20:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to create the list of variables common to both var-list-1 and var-list-2.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198413#M49593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't test it, but it seems to me if your scenario came as is, a small tweak to the solution of your precious&amp;nbsp; question should do,&lt;/P&gt;&lt;P&gt;%LET large=a b c d e f g h i j k;&lt;/P&gt;&lt;P&gt;%LET exclude=c d h k m n;&lt;/P&gt;&lt;P&gt;%let final=%sysfunc(compress(&amp;amp;large,&amp;amp;exclude.,k));&lt;/P&gt;&lt;P&gt;%put final=&amp;amp;final;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 20:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198413#M49593</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-03-10T20:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to create the list of variables common to both var-list-1 and var-list-2.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198414#M49594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if the column names are like this. instead of a b c its ab cd name etc. Compress will remove all a and b letters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%LET large=ab bc name;&lt;/P&gt;&lt;P&gt;%LET exclude=ab;&lt;/P&gt;&lt;P&gt;%let final=%sysfunc(compress(&amp;amp;large,&amp;amp;exclude.,k));&lt;/P&gt;&lt;P&gt;%put final=&amp;amp;final;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 18:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198414#M49594</guid>
      <dc:creator>BOBSAS</dc:creator>
      <dc:date>2015-03-11T18:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to create the list of variables common to both var-list-1 and var-list-2.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198415#M49595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly. My solution has its context, in which &lt;A __default_attr="73042" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/"&gt;&lt;/A&gt;, this caveat has been exposed to the same OP. But obviously the context has been buried too deep, so thanks for pointing it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 02:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-create-the-list-of-variables-common-to-both-var-list-1/m-p/198415#M49595</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-03-12T02:11:44Z</dc:date>
    </item>
  </channel>
</rss>

