<?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: Searching from a list as a condition in proc freq? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506717#M1389</link>
    <description>&lt;P&gt;Thank you mam&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; for the kind words. .I am lucky and privileged to receive favors from you,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp;(IW workbook share -changed everything - the foremost help ) ,MarkKeintz,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt; PG,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;, John king et all sirsss in plural and lately on a personal level special attention offline by Guru Paul D who is taking a lot of interest in me in getting me up to speed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, with 5 years and to have gotten to this level is very pleasing. I can't thank all the above mentioned enough. My parents never imagined their only child who is spoiled rotten will ever change. My mom a retired forex analyst often follows all the fun here and is well aware of the top contributors. Well it's a sweet symphony so to speak. I dedicate all the good stuff to mom and dad.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Special gratitude from mom,dad and me goes to you for the below link&amp;nbsp; when you spotted me. That gave me lot of confidence.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/total-visits-and-average-score-in-a-datastep/td-p/411675" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/total-visits-and-average-score-in-a-datastep/td-p/411675&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-left lia-quilt-column-main-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-author lia-component-author"&gt;
&lt;DIV class="lia-message-author-username"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;IMG class="lia-user-rank-icon lia-user-rank-icon-left" src="https://communities.sas.com/html/rank_icons/super-user-rank.png" border="0" alt="Super User" title="Super User" /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A id="link_78" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Reeza&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-author-rank"&gt;Super User&lt;/DIV&gt;
&lt;DIV class="lia-message-author-avatar"&gt;
&lt;DIV class="UserAvatar lia-user-avatar lia-component-common-widget-user-avatar"&gt;&lt;A id="link_79" class="UserAvatar lia-link-navigation" tabindex="-1" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879" target="_self"&gt;&lt;IMG class="lia-user-avatar-message" src="https://communities.sas.com/t5/image/serverpage/avatar-name/robojapan/avatar-theme/candy/avatar-collection/robots/avatar-display-size/message?xdesc=1.0" border="0" alt="Reeza" title="Reeza" /&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-author-post-count"&gt;Posts: 25,097&lt;/DIV&gt;
&lt;DIV class="lia-message-author-ipaddress"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV class="lia-message-heading lia-component-message-header"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-subject"&gt;
&lt;H2&gt;Re: total visits and average score in a datastep&lt;/H2&gt;
&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-message-subject-status"&gt;[&amp;nbsp;Edited&amp;nbsp;]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class="MessageReadByModeratorCell lia-moderation-moderated"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV class="lia-message-options"&gt;
&lt;DIV id="actionMenuDropDown_14" class="lia-menu-navigation-wrapper lia-menu-action message-menu"&gt;
&lt;DIV class="lia-menu-navigation"&gt;
&lt;DIV class="dropdown-default-item"&gt;&lt;A id="dropDownLink_14" class="lia-js-menu-opener default-menu-option lia-js-click-menu lia-link-navigation" title="Show option menu" href="https://communities.sas.com/t5/SAS-Programming/total-visits-and-average-score-in-a-datastep/td-p/411675#" target="_blank"&gt;Options&lt;/A&gt;
&lt;DIV class="dropdown-positioning"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="reply-to-stamp"&gt;&lt;SPAN class="reply-author"&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/total-visits-and-average-score-in-a-datastep/m-p/412133#M100794" target="_blank"&gt;Posted in reply to&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;novinosrin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"&gt;&lt;SPAN class="DateTime lia-message-posted-on lia-component-common-widget-date"&gt;&lt;SPAN class="local-date"&gt;‎11-09-2017&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt;04:17 PM&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;- edited&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="DateTime lia-message-edited-on lia-component-common-widget-date"&gt;&lt;SPAN class="local-date"&gt;‎11-09-2017&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt;04:17 PM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="messagebodydisplay_0_13" class="lia-message-body lia-component-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; This is just for fun. I wanted to experiment how a hash alternative would work at my college lab this afternoon.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205" target="_blank"&gt;@novinosrin&lt;/A&gt;&amp;nbsp;If there was any uncertainty about your 'geek' status or SAS expertise consider it certain now&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;IMG class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" border="0" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 02:54:09 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-10-23T02:54:09Z</dc:date>
    <item>
      <title>Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506661#M1368</link>
      <description>&lt;P&gt;Hi SAS community! Finally going to bug you with a question, now that I've been learning from you Super Users for months. (You are an amazing resource -- I can't figure out how much time you're spending on all this or why, but I really admire what you do here and hope to get to your level!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be more of a programming logic question, unless there's a function I'm not aware of that would accomplish this task.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have given SAS a list of objects and stored it in a macro list which now looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;%put &amp;amp;ObjectList;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Object1" "Object2" "Object3" "Object4" "" ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to get fancy and put it in a condition for proc freq:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;freq&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;=tatertots; &lt;SPAN&gt;tables&lt;/SPAN&gt;&amp;nbsp;var1*var2; &lt;SPAN&gt;where&lt;/SPAN&gt; propcase(strip(var1)) in(&amp;amp;ObjectLi&lt;SPAN&gt;st.&lt;/SPAN&gt;) and var1 ne &lt;SPAN&gt;""&lt;/SPAN&gt;; &lt;SPAN&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my head, this made perfect sense when I wrote it, but the data looked suspicious. Then I realized, my var1 contains observations which have multiple objects, such as this one:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obs &amp;nbsp; &amp;nbsp; &amp;nbsp; Var1&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object1, OBJECT4, Object3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clearly I was asking SAS so search the entirety of propcase(strip(var1)) within &amp;amp;ObjectList, so when there was no match for that entire string it skipped those observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can probably solve this by parsing out var1 to be multiple variables with one object each and adding those conditions to my proc freq. I've had luck doing this with a new dataset via arrays and do loops in the past. I've been practicing using index, scan, substr and some basic character modifying functions, but as far as I know I'll have the same problem with those.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I want to know what a seasoned, efficient programmer would do because I have the feeling there's something I don't know that doesn't require making a whole new dataset. What would you do?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, in your answer, would you mind including your favorite resource for learning to write macros? Or perhaps share how you learned? I'm really wanting to get better at that and I want a good teacher.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for everything you do, and hope my question makes sense and falls within community guidelines.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 20:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506661#M1368</guid>
      <dc:creator>FunWithBIOS</dc:creator>
      <dc:date>2018-10-22T20:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506688#M1376</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/241942"&gt;@FunWithBIOS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi SAS community! Finally going to bug you with a question, now that I've been learning from you Super Users for months. (You are an amazing resource -- I can't figure out how much time you're spending on all this or why, but I really admire what you do here and hope to get to your level!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may be more of a programming logic question, unless there's a function I'm not aware of that would accomplish this task.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have given SAS a list of objects and stored it in a macro list which now looks like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;ObjectList;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Object1" "Object2" "Object3" "Object4" "" ""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I want to get fancy and put it in a condition for proc freq:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;freq&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;=tatertots; &lt;SPAN&gt;tables&lt;/SPAN&gt;&amp;nbsp;var1*var2; &lt;SPAN&gt;where&lt;/SPAN&gt; propcase(strip(var1)) in(&amp;amp;ObjectLi&lt;SPAN&gt;st.&lt;/SPAN&gt;) and var1 ne &lt;SPAN&gt;""&lt;/SPAN&gt;; &lt;SPAN&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my head, this made perfect sense when I wrote it, but the data looked suspicious. Then I realized, my var1 contains observations which have multiple objects, such as this one:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obs &amp;nbsp; &amp;nbsp; &amp;nbsp; Var1&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object1, OBJECT4, Object3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clearly I was asking SAS so search the entirety of propcase(strip(var1)) within &amp;amp;ObjectList, so when there was no match for that entire string it skipped those observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can probably solve this by parsing out var1 to be multiple variables with one object each and adding those conditions to my proc freq. I've had luck doing this with a new dataset via arrays and do loops in the past. I've been practicing using index, scan, substr and some basic character modifying functions, but as far as I know I'll have the same problem with those.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess I want to know what a seasoned, efficient programmer would do because I have the feeling there's something I don't know that doesn't require making a whole new dataset. What would you do?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, in your answer, would you mind including your favorite resource for learning to write macros? Or perhaps share how you learned? I'm really wanting to get better at that and I want a good teacher.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for everything you do, and hope my question makes sense and falls within community guidelines.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If I understand what you want to do is to parse the possibly multiple values held in VAR1 to search for membership in the list held by &amp;amp;OBJECTLIST.&lt;/P&gt;
&lt;P&gt;A where statement will not do what you want with any simplicity.&lt;/P&gt;
&lt;P&gt;You would likely be better of with a data step before Proc Freq to select the appropriate records first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you actually including blank values in your object list. I would generally consider that to be very confusing and minimum and likely to cause other problems elsewhere at worst.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may get you started but you have to decide whether the last example goes into your proc freq or not.&lt;/P&gt;
&lt;P&gt;If not then you have additional logic to describe and develop.&lt;/P&gt;
&lt;PRE&gt;data example;
   
   input var1 $ 1-25 ;
   do i=1 to countw(var1);
      if propcase(scan(var1,i)) in (&amp;amp;objectlist.) then do;
          output;
          leave;
      end;
   end;
   drop i;
datalines;
object1, object2
Object5
OBJECT2, Object1
Object2, object3
OBJECT5, Object1
;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Oct 2018 22:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506688#M1376</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-22T22:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506696#M1379</link>
      <description>&lt;P&gt;Thanks, Ballard, for your response!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I actually have this done previously in a data step for another purpose -- not including my macro list, though:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;array&lt;/SPAN&gt;&amp;nbsp;split_var1(*) object1-object4&amp;nbsp; _char_;&lt;/P&gt;&lt;P&gt;i=&lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;do&lt;/SPAN&gt; &lt;SPAN&gt;while&lt;/SPAN&gt;(scan(var1,i,&lt;SPAN&gt;","&lt;/SPAN&gt;)ne&lt;SPAN&gt;" "&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;split_var1&lt;/SPAN&gt;(i)=scan(var1,i,&lt;SPAN&gt;","&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;i=i+&lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;end&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After I posted, I was able to get the proc freq to output a table with the correct amounts using the dataset which included my code above. My question was more about improvement, I think. And your answer, I believe, is that this is the best way! That answers my question, then.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also as a new programmer who doesn't have a big network of programmers to compare notes with, I loved your approach to that array and I think I'll use it. Even "leave" is a new statement for me. Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edit: Also, don't worry about the blanks. That has to do with a length I specified earlier&amp;nbsp;that I haven't changed yet. I&amp;nbsp;agree, and it&amp;nbsp;will be fixed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 22:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506696#M1379</guid>
      <dc:creator>FunWithBIOS</dc:creator>
      <dc:date>2018-10-22T22:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506697#M1380</link>
      <description>&lt;P&gt;Avoid macros at all costs is my motto. They do have a purpose and are incredibly useful, but there are often a lot of ways to get things done without macros. For your example one approach that may work is loading the lookup data into a temporary array and doing comparisons. If you want to get really good with SAS, understand the data step or see what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;recommends. He's relatively new and has progressed incredibly fast IMO. I'm older and have about 15 years of experience. I also have a really good memory....or so I've been told. It's definitely going these days and a lot of things have changed from when I initially learned them, so I have to make a concentrated effort to keep up &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Use it or lose it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: update because I accidentally got novinosrin's tag name wrong&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 22:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506697#M1380</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-22T22:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506699#M1381</link>
      <description>&lt;P&gt;Wow, that is not an answer I was expecting, but point definitely taken! Thanks Reeza!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 22:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506699#M1381</guid>
      <dc:creator>FunWithBIOS</dc:creator>
      <dc:date>2018-10-22T22:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506703#M1383</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/241942"&gt;@FunWithBIOS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks, Ballard, for your response!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I actually have this done previously in a data step for another purpose -- not including my macro list, though:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;array&lt;/SPAN&gt;&amp;nbsp;split_var1(*) object1-object4&amp;nbsp; _char_;&lt;/P&gt;
&lt;P&gt;i=&lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;do&lt;/SPAN&gt; &lt;SPAN&gt;while&lt;/SPAN&gt;(scan(var1,i,&lt;SPAN&gt;","&lt;/SPAN&gt;)ne&lt;SPAN&gt;" "&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;split_var1&lt;/SPAN&gt;(i)=scan(var1,i,&lt;SPAN&gt;","&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;i=i+&lt;SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;end&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;After I posted, I was able to get the proc freq to output a table with the correct amounts using the dataset which included my code above. My question was more about improvement, I think. And your answer, I believe, is that this is the best way! That answers my question, then.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also as a new programmer who doesn't have a big network of programmers to compare notes with, I loved your approach to that array and I think I'll use it. Even "leave" is a new statement for me. Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Edit: Also, don't worry about the blanks. That has to do with a length I specified earlier&amp;nbsp;that I haven't changed yet. I&amp;nbsp;agree, and it&amp;nbsp;will be fixed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The main thing in this case is that while a WHERE statement can accept uses of functions on values it cannot do "loops" inside the statement and if you need to compare &lt;STRONG&gt;multiple&lt;/STRONG&gt; pieces of a variable then the limits of WHERE just don't allow them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach could have been reshaping the data to split the VAR1 apart and create multiple records. But that likely would have a different frequency count then you wanted though that could be addressed as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would help with questions to be able to state such things as "I want to count the record if at least one&amp;nbsp;of the pieces of VAR1 are in the List" or "all of the pieces of var1 have to be in the list somewhere" (at least two of the possible concerns with your "problem" records that didn't match). Note the later one requires considerably more coding. An exercise for the interested reader would be to modify the code I provided to get the other result. Hint: Leave is still helpful but quit when the current item is not in the list without output.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 15:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506703#M1383</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-23T15:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506712#M1387</link>
      <description>You may also want to look into WHICHC() which may help here. Not sure though.</description>
      <pubDate>Tue, 23 Oct 2018 00:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506712#M1387</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-23T00:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506717#M1389</link>
      <description>&lt;P&gt;Thank you mam&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; for the kind words. .I am lucky and privileged to receive favors from you,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp;(IW workbook share -changed everything - the foremost help ) ,MarkKeintz,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt; PG,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;, John king et all sirsss in plural and lately on a personal level special attention offline by Guru Paul D who is taking a lot of interest in me in getting me up to speed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, with 5 years and to have gotten to this level is very pleasing. I can't thank all the above mentioned enough. My parents never imagined their only child who is spoiled rotten will ever change. My mom a retired forex analyst often follows all the fun here and is well aware of the top contributors. Well it's a sweet symphony so to speak. I dedicate all the good stuff to mom and dad.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Special gratitude from mom,dad and me goes to you for the below link&amp;nbsp; when you spotted me. That gave me lot of confidence.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/total-visits-and-average-score-in-a-datastep/td-p/411675" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/total-visits-and-average-score-in-a-datastep/td-p/411675&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-left lia-quilt-column-main-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-author lia-component-author"&gt;
&lt;DIV class="lia-message-author-username"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;IMG class="lia-user-rank-icon lia-user-rank-icon-left" src="https://communities.sas.com/html/rank_icons/super-user-rank.png" border="0" alt="Super User" title="Super User" /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A id="link_78" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Reeza&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-author-rank"&gt;Super User&lt;/DIV&gt;
&lt;DIV class="lia-message-author-avatar"&gt;
&lt;DIV class="UserAvatar lia-user-avatar lia-component-common-widget-user-avatar"&gt;&lt;A id="link_79" class="UserAvatar lia-link-navigation" tabindex="-1" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879" target="_self"&gt;&lt;IMG class="lia-user-avatar-message" src="https://communities.sas.com/t5/image/serverpage/avatar-name/robojapan/avatar-theme/candy/avatar-collection/robots/avatar-display-size/message?xdesc=1.0" border="0" alt="Reeza" title="Reeza" /&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-author-post-count"&gt;Posts: 25,097&lt;/DIV&gt;
&lt;DIV class="lia-message-author-ipaddress"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV class="lia-message-heading lia-component-message-header"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-subject"&gt;
&lt;H2&gt;Re: total visits and average score in a datastep&lt;/H2&gt;
&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-message-subject-status"&gt;[&amp;nbsp;Edited&amp;nbsp;]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class="MessageReadByModeratorCell lia-moderation-moderated"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV class="lia-message-options"&gt;
&lt;DIV id="actionMenuDropDown_14" class="lia-menu-navigation-wrapper lia-menu-action message-menu"&gt;
&lt;DIV class="lia-menu-navigation"&gt;
&lt;DIV class="dropdown-default-item"&gt;&lt;A id="dropDownLink_14" class="lia-js-menu-opener default-menu-option lia-js-click-menu lia-link-navigation" title="Show option menu" href="https://communities.sas.com/t5/SAS-Programming/total-visits-and-average-score-in-a-datastep/td-p/411675#" target="_blank"&gt;Options&lt;/A&gt;
&lt;DIV class="dropdown-positioning"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="reply-to-stamp"&gt;&lt;SPAN class="reply-author"&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/total-visits-and-average-score-in-a-datastep/m-p/412133#M100794" target="_blank"&gt;Posted in reply to&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;novinosrin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"&gt;&lt;SPAN class="DateTime lia-message-posted-on lia-component-common-widget-date"&gt;&lt;SPAN class="local-date"&gt;‎11-09-2017&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt;04:17 PM&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;- edited&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="DateTime lia-message-edited-on lia-component-common-widget-date"&gt;&lt;SPAN class="local-date"&gt;‎11-09-2017&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt;04:17 PM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="messagebodydisplay_0_13" class="lia-message-body lia-component-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; This is just for fun. I wanted to experiment how a hash alternative would work at my college lab this afternoon.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205" target="_blank"&gt;@novinosrin&lt;/A&gt;&amp;nbsp;If there was any uncertainty about your 'geek' status or SAS expertise consider it certain now&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;IMG class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" border="0" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 02:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506717#M1389</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-23T02:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506922#M1421</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/241942"&gt;@FunWithBIOS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;(...)&amp;nbsp;my var1 contains observations which have multiple objects, such as this one:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obs &amp;nbsp; &amp;nbsp; &amp;nbsp; Var1&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object1, OBJECT4, Object3&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/241942"&gt;@FunWithBIOS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From my experience it's rarely a good idea to store "multiple objects" in a single character variable, except for reporting purposes. The difficulties you encountered are a case in point. I think you'll make your life easier if you store lists of values in separate observations. Then you have a variety of techniques at your disposal to use them. In a DATA step you can perform BY-group processing (e.g. in the form of so called &lt;EM&gt;DOW loops&lt;/EM&gt; for data aggregation). Also the (more advanced) hash object offers a lot of possibilities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SQL is great for list processing as well. For example, if there are several observations for one ID with distinct&amp;nbsp;VAR1 values, you can select IDs based on any conceivable criteria regarding the relationship between this set of VAR1 values and your&amp;nbsp;&lt;SPAN&gt;&amp;amp;ObjectList, e.g.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;group by id
having min(propcase(var1) in (&amp;amp;ObjectList));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;for the criterion "the VAR1 values (case insensitive) form a subset of the values in &amp;amp;ObjectList". You can even replace &amp;amp;ObjectList with a subquery like &lt;FONT face="courier new,courier"&gt;select&amp;nbsp;obj from list&lt;/FONT&gt;, which allows for more conditions than just IN (namely EXISTS, ANY and ALL). Note that the non-zero counts resulting&amp;nbsp;from your PROC FREQ step could also be obtained easily by PROC SQL (&lt;FONT face="courier new,courier"&gt;count(*)&lt;/FONT&gt; in conjunction with &lt;FONT face="courier new,courier"&gt;group by var1, var2&lt;/FONT&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/241942"&gt;@FunWithBIOS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, in your answer, would you mind including your favorite resource for learning to write macros? Or perhaps share how you learned?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;This is a bit difficult for me because I learned the basics of SAS and also of macro programming primarily from the printed SAS 6 documentation in the late 1990s. I own about 15 books on SAS topics, but none about macro language. A good resource that I use occasionally is the &lt;A href="http://www.datasavantconsulting.com/roland/" target="_blank"&gt;digital legacy of Roland Rashleigh-Berry&lt;/A&gt; (a former colleague of mine). See in particular &lt;A href="http://www.datasavantconsulting.com/roland/sastips.html" target="_blank"&gt;Roland's SAS tips and techniques&lt;/A&gt;&amp;nbsp;(including &lt;A href="http://www.datasavantconsulting.com/roland/macrotips.html" target="_blank"&gt;Tips on writing SAS macros&lt;/A&gt;) and his &lt;A href="http://www.datasavantconsulting.com/roland/Spectre/maclist2.html" target="_blank"&gt;SAS macros&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I assume that &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;Carpenter's Complete Guide to the SAS® Macro Language&lt;/A&gt;&amp;nbsp;is great because I found two of the author's other books very useful (&lt;A href="https://www.sas.com/store/books/categories/examples/carpenter-s-guide-to-innovative-sas-techniques/prodBK_62454_en.html" target="_blank"&gt;Carpenter's Guide to Innovative SAS® Techniques&lt;/A&gt;&amp;nbsp;and &lt;A href="https://www.sas.com/store/books/categories/usage-and-reference/carpenter-s-complete-guide-to-the-sas-report-procedure/prodBK_60966_en.html" target="_blank"&gt;Carpenter's Complete Guide to the SAS® REPORT Procedure&lt;/A&gt;).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That said, the importance of macros seems to be overestimated by many posters here. As a consequence, t&lt;/SPAN&gt;&lt;SPAN&gt;he archives of this forum contain tons of reports of problems arising from inappropriate&amp;nbsp;or unnecessary use of macro language.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 16:49:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/506922#M1421</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-10-23T16:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/507008#M1425</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/241942"&gt;@FunWithBIOS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, in your answer, would you mind including your favorite resource for learning to write macros? Or perhaps share how you learned? I'm really wanting to get better at that and I want a good teacher.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Besides the documentation one of the first places I would look is in your SAS install. Many of the SAS components have some macro library and you can chase them down from the configuration&amp;nbsp;file, the output from Proc Options or searching for folders named SASMACRO in the programs folder for SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CAUTION: some of the DMS modification macros may not run a bits of the DMS have been deprecated or changed. But there a many SAS written macros of various lengths and complexities to examine and steal code from...&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 20:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/507008#M1425</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-23T20:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a list as a condition in proc freq?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/507010#M1426</link>
      <description>&lt;P&gt;Oh...and the documentation has a decent set of examples that cover common usage.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n02xowj8yuqfo4n0zzi98shu8qup.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n02xowj8yuqfo4n0zzi98shu8qup.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe a SAS Studio Task was also developed to help with macros:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-Studio-Custom-Task-Tuesday-How-to-Create-Macro-Execution/ta-p/320589" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-Studio-Custom-Task-Tuesday-How-to-Create-Macro-Execution/ta-p/320589&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 20:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Searching-from-a-list-as-a-condition-in-proc-freq/m-p/507010#M1426</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-23T20:54:51Z</dc:date>
    </item>
  </channel>
</rss>

