<?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: List of variables based on suffix (not prefix) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/887047#M39358</link>
    <description>&lt;P&gt;I strongly agree with the others&amp;nbsp; (&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; ,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt; and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; and anyone else I missed) who have stated that this very wide data set would be much easier to handle if it was narrow and long. If I were you, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36911"&gt;@_maldini_&lt;/a&gt; I would bite the bullet and do the work to convert the data set to narrow and long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;FONT face="inherit"&gt;Using what I've adapted from &lt;/FONT&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892" target="_blank" rel="noopener"&gt;@PaigeMiller&lt;/A&gt;&amp;nbsp;&lt;FONT face="inherit"&gt;above (because at least I understand that part), Is there a way to create a variable that would allow me to subset by prefix?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;data cardia.go_a;
  set cardia.go;
  where prefix = "A";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;WHERE allows you to select ROWS, the entire conversation has been about selecting COLUMNS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you could use the PROC CONTENTS output or DICTIONARY.COLUMNS table to find variable names that BEGIN with A, its really analogous to what I showed about finding names that END with a certain prefix.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jul 2023 22:56:56 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-07-30T22:56:56Z</dc:date>
    <item>
      <title>List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886668#M39323</link>
      <description>&lt;P&gt;Is there a way to reference a list of variables based on a common suffix?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I simply want to reference a list in a KEEP statement without having to include every single variable. The variables are not continuous with each other in the data set. Below are some sample variables, but I have to do this for many many variables so a list would be preferred. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;A09CGTDY&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;B09CGTDY&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;C09CGTDY&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;D09CGTDY&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;E09CGTDY&lt;/DIV&gt;
&lt;DIV&gt;F09CGTDY&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;G09CGTDY&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;H09CGTDY&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I09CGTDY&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA new_dataset;
   SET old_dataset;
   KEEP A09CGTDY B09CGTDY C09CGTDY D09CGTDY E09CGTDY F09CGTDY G09CGTDY H09CGTDY I09CGTDY;
RUN;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jul 2023 16:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886668#M39323</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2023-07-27T16:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886670#M39324</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
    select name into :colnames separated by ' ' 
    from dictionary.columns
    where upcase(substr(name,4)) eq 'CGTDY' /* Your suffix goes here */
        and libname='WORK' /* Whatever libname is needed goes here, upper case */
        and memname='OLD_DATASET' /* Your data set name goes here, upper case */
;
quit;

data new_dataset;
    set old_dataset;
    keep &amp;amp;colnames;
run;
    &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jul 2023 17:22:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886670#M39324</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-27T17:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886672#M39325</link>
      <description>&lt;DIV class="sasSource"&gt;Got 2 errors (switched the variable list on you...A02SMOKE, B02SMOKE, C02SMOKE).&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Any advice?&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;See log below:&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;73 proc sql noprint;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;74 select name into :colnames separated by ' '&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;75 from dictionary.columns&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76 where substr(name,4) eq 'SMOKE' /* Your suffix goes here */&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77 and libname='CARDIA' /* Whatever libname is needed goes here, upper case */&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 and memname='CARDIA.C1260REQ06_29_2023' /* Your data set name goes here, upper case */&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;79 ;&lt;/DIV&gt;
&lt;DIV id="sasLogNote1_1690478400626" class="sasNote"&gt;NOTE: No rows were selected.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;80 quit;&lt;/DIV&gt;
&lt;DIV id="sasLogNote2_1690478400626" class="sasNote"&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;user cpu time 0.01 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;system cpu time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;memory 5342.34k&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;OS Memory 35752.00k&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Timestamp 07/27/2023 05:20:00 PM&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Step Count 74 Switch Count 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Page Reclaims 56&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Voluntary Context Switches 5&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Involuntary Context Switches 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Block Input Operations 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Block Output Operations 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;81&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;82 data new_dataset;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;83 set CARDIA.C1260REQ06_29_2023;&lt;/DIV&gt;
&lt;DIV id="sasLogNote3_1690478400626" class="sasNote"&gt;NOTE: Data file CARDIA.C1260REQ06_29_2023.DATA is in a format that is native to another host, or the file encoding does not match&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;the session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;reduce performance.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;84 keep &amp;amp;colnames ID;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;200&lt;/DIV&gt;
&lt;DIV id="sasLogWarning1_1690478400626" class="sasWarning"&gt;&lt;FONT color="#008000"&gt;WARNING: Apparent symbolic reference COLNAMES not resolved.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV id="sasLogError1_1690478400626" class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogError2_1690478400626" class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;85 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogWarning2_1690478400626" class="sasWarning"&gt;&lt;FONT color="#008000"&gt;WARNING: The variable colnames in the DROP, KEEP, or RENAME list has never been referenced.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV id="sasLogNote4_1690478400626" class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;
&lt;DIV id="sasLogWarning3_1690478400626" class="sasWarning"&gt;&lt;FONT color="#008000"&gt;WARNING: The data set WORK.NEW_DATASET may be incomplete. When this step was stopped there were 0 observations and 1 variables.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV id="sasLogWarning4_1690478400626" class="sasWarning"&gt;&lt;FONT color="#008000"&gt;WARNING: Data set WORK.NEW_DATASET was not replaced because this step was stopped.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV id="sasLogNote5_1690478400626" class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 0.06 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;user cpu time 0.06 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;system cpu time 0.01 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;memory 7987.37k&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;OS Memory 37984.00k&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Timestamp 07/27/2023 05:20:00 PM&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Step Count 75 Switch Count 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Page Reclaims 1950&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Voluntary Context Switches 5&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Involuntary Context Switches 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Block Input Operations 0&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Block Output Operations 8&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;86&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;87 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;99&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Jul 2023 17:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886672#M39325</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2023-07-27T17:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886673#M39326</link>
      <description>&lt;P&gt;Going forward I would suggest some planning when it comes to variable names. If they have multiple relationships in the names, i.e. you have A01XXX , A02XXX, A03XXX (where XXX is just some other string of related text) then perhaps an ideal name structure to to use for all purposes but XXXA01 XXXA02 XXXA03 would let you use lists like XXXA: to get all the XXXA variables, or XXXA01-XXXA15 (assuming you have all those ending in A02 through A14 and more such as up to A100).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However if you have A01XXX and A01YYY and A01ZZZ that you also want to use lists like A: or A01: your going to have to deal with long lists. But this might be indicative that the data structure could be improved and perhaps the text of XXX, YYY and ZZZ should be the value of a variable.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 17:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886673#M39326</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-27T17:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886674#M39327</link>
      <description>&lt;P&gt;Unfortunately I have no say in the naming of the variables. It's an analysis of previously collected data w/&amp;nbsp;&lt;SPAN&gt;4962 variables.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 17:28:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886674#M39327</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2023-07-27T17:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886675#M39328</link>
      <description>&lt;PRE&gt;NOTE: No rows were selected.&lt;/PRE&gt;
&lt;P&gt;One possible cause is that the data set name cannot have a dot in it in the MEMNAME column; the libname and dot is not part of the data set name for the purposes of this SQL search.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 17:31:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886675#M39328</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-27T17:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886676#M39329</link>
      <description>&lt;P&gt;Yep, that fixed it! Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What would be the best way to do this for multiple lists? Would I do a separate&amp;nbsp;proc sql for each list?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 17:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886676#M39329</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2023-07-27T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886681#M39330</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36911"&gt;@_maldini_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What would be the best way to do this for multiple lists? Would I do a separate&amp;nbsp;proc sql for each list?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Explain this further. Give details. Give examples. Don't make us guess what you mean.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 17:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886681#M39330</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-27T17:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886684#M39331</link>
      <description>&lt;P&gt;Apologies. I want to subset an enormous dataset w/&amp;nbsp;4962 variables using a KEEP statement.&amp;nbsp;The data are derived from a longitudinal study w/ multiple time points. Variables that begin with "A" represent time point 1. Variables that begin with "B" represent time point 2. Etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The list of variables I used in my original question was 1 variable measured at multiple time points (A09CGTDY to&amp;nbsp;I09CGTDY). I want to include all time points for this variable in the subset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to use the KEEP statement to reference multiple lists. This list is just for one variable. I want to do this for 25+ variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would I create a separate proc sql for each variable w/ its individual suffix and character count?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for not being more clear in the beginning.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 18:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886684#M39331</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2023-07-27T18:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886685#M39332</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I want to use the KEEP statement to reference multiple lists. This list is just for one variable. I want to do this for 25+ variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You said very similar things in an earlier post, and I asked for examples. I don't see examples of what you mean.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 18:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886685#M39332</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-27T18:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886687#M39333</link>
      <description>&lt;P&gt;Create a dataset with the list of variables and then you can create categories for them.&lt;/P&gt;
&lt;P&gt;Let's keep it simple and just use PROC CONTENTS to get the variable names.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=mylib.mydata out=contents noprint; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you can use the name to figure out the groups. Perhaps you want to pull out a 1 character prefix and a 3 character suffix?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data groups;
  set contents;
  prefix = substr(name,1,1);
  suffix= substr(name,length(name)-2);
  middle = substrn(name,2,length(name)-4);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you can query the list more easily;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select nliteral(name) 
  into :namelist separated by ' '
  from groups
  where prefix in ('A','C')
    and suffix in ('TDY')
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jul 2023 18:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886687#M39333</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-27T18:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886693#M39334</link>
      <description>&lt;P&gt;Yikes, you're asking for a lot more questions w/ that idea!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before I try to adapt that code to play with it, what output will querying the list using PROC SQL produce?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 19:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886693#M39334</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2023-07-27T19:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886699#M39335</link>
      <description>&lt;P&gt;Here is what my primitive SAS brain was thinking:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;amp;colnames is a macro variable for the list of variables w/ a suffix of SMOKE.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;amp;colnames2 is a macro variable for the list of variables w/ a suffix of TEST, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm sure there are better ways of doing this, but I was asking about writing a separate proc sql for each list of variables (&amp;amp;colnames2=age, &amp;amp;colnames3=physical activity, &amp;amp;colnames4=alcohol use, etc.).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
    select name into :colnames separated by ' ' 
    from dictionary.columns
    where substr(name,4) eq 'SMOKE' /* Your suffix goes here */
        and libname='CARDIA' /* Whatever libname is needed goes here, upper case */
        and memname='C1260REQ06_29_2023' /* Your data set name goes here, upper case */
;
quit;


proc sql noprint;
    select name into :&lt;FONT color="#FF0000"&gt;colnames2&lt;/FONT&gt; separated by ' ' 
    from dictionary.columns
    where substr(name,4) eq '&lt;FONT color="#FF0000"&gt;TEST&lt;/FONT&gt;' /* Your suffix goes here */
        and libname='CARDIA' /* Whatever libname is needed goes here, upper case */
        and memname='C1260REQ06_29_2023' /* Your data set name goes here, upper case */
;
quit;

data new_dataset;
    set CARDIA.C1260REQ06_29_2023;
    keep &amp;amp;colnames &lt;FONT color="#FF0000"&gt;&amp;amp;colnames2&lt;/FONT&gt; ID;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 19:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886699#M39335</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2023-07-27T19:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886701#M39336</link>
      <description>This method will work, just make sure that the substr() that limits to the characters after 4 is consistent. There's probably more efficient methods, but if this is one you understand and can edit/update yourself it's the easiest IMO.</description>
      <pubDate>Thu, 27 Jul 2023 19:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886701#M39336</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-07-27T19:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886704#M39337</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36911"&gt;@_maldini_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Apologies. I want to subset an enormous dataset w/&amp;nbsp;4962 variables using a KEEP statement.&amp;nbsp;The data are derived from a longitudinal study w/ multiple time points&lt;STRONG&gt;. Variables that begin with "A" represent time point 1.&lt;/STRONG&gt; Variables that begin with "B" represent time point 2. Etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A good example of a decision made long ago that was wrong. The data for most purposes should have the same variables but one that holds the "time point" information and one observation per timepoint per respondent.&lt;/P&gt;
&lt;P&gt;As a changing part based on a source then the "timepoint" should be the suffix, not the actual variable if the main use is going to be looking at the topics and not the timepoints for analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One very common thing with longitudinal data is determining which respondents were available for all times, or when they dropped out (last period of participation) or intermittent responses. This wide format is going to make it very hard to answer those especially if your response values are not able to differentiate between "no value because the participant wasn't reached" and "no value".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seeing 4000+ variables alone quite often points to a sub-optimal data structure.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 20:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886704#M39337</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-27T20:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886705#M39338</link>
      <description>&lt;P&gt;This sort of extremely wide dataset becomes problematic to work with very quickly.&amp;nbsp; You've got longitudinal data strung out with one record per patient, and the same question (number of cigarettes smoked today) was asked over nine time-points, so you have nine variable:&amp;nbsp;&lt;SPAN&gt;A09CGTDY to I09CGTDY.&amp;nbsp; (If A-I is the timepoint, what is the meaning of the 09? ).&amp;nbsp; Then presumably you have another question for number of alcoholic drinks, and it would also have 9 variables&amp;nbsp;&amp;nbsp;A09ALTDY to I09ALTDY.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When working with data like this, usually the best first step&amp;nbsp; is to transpose it into a more narrow format.&amp;nbsp; So instead of one patient having 1 row of data with 19 columns (PatientID&amp;nbsp;A09CGTDY-I09CGTDY&amp;nbsp;A09ALTDY-I09ALTDY), one patient has 9 rows of data (one per timepoint) with the columns PatientID Timepoint CGTDY ALTDY.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you look at your survey data, you may find many other examples of repeating questions which could be further broken out and separated into their own datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've all been in the position of receiving data in an undesirable format and having to work with it.&amp;nbsp; Life is usually easier if you put in some time to reshape the data before you start analyzing it.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 20:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886705#M39338</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-07-27T20:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886707#M39339</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36911"&gt;@_maldini_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm sure there are better ways of doing this, but I was asking about writing a separate proc sql for each list of variables (&amp;amp;colnames2=age, &amp;amp;colnames3=physical activity, &amp;amp;colnames4=alcohol use, etc.).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
    select name into :colnames separated by ' ' 
    from dictionary.columns
    where substr(name,4) eq 'SMOKE' /* Your suffix goes here */
        and libname='CARDIA' /* Whatever libname is needed goes here, upper case */
        and memname='C1260REQ06_29_2023' /* Your data set name goes here, upper case */
;
quit;


proc sql noprint;
    select name into :&lt;FONT color="#FF0000"&gt;colnames2&lt;/FONT&gt; separated by ' ' 
    from dictionary.columns
    where substr(name,4) eq '&lt;FONT color="#FF0000"&gt;TEST&lt;/FONT&gt;' /* Your suffix goes here */
        and libname='CARDIA' /* Whatever libname is needed goes here, upper case */
        and memname='C1260REQ06_29_2023' /* Your data set name goes here, upper case */
;
quit;

data new_dataset;
    set CARDIA.C1260REQ06_29_2023;
    keep &amp;amp;colnames &lt;FONT color="#FF0000"&gt;&amp;amp;colnames2&lt;/FONT&gt; ID;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you just want to generate one variable list, you wouldn't need to write multiple PROC SQL steps, you can user an OR operator on the WHERE clause, like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
    select name into :colnames separated by ' ' 
    from dictionary.columns
    where substr(name,4) eq 'SMOKE' or substr(name,4) eq 'ALCOHOL'
        and libname='CARDIA' /* Whatever libname is needed goes here, upper case */
        and memname='C1260REQ06_29_2023' /* Your data set name goes here, upper case */
;
quit;

data new_dataset;
    set CARDIA.C1260REQ06_29_2023;
    keep &amp;amp;colnames ID;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jul 2023 20:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886707#M39339</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-07-27T20:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886709#M39340</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36911"&gt;@_maldini_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yikes, you're asking for a lot more questions w/ that idea!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before I try to adapt that code to play with it, what output will querying the list using PROC SQL produce?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Always a good idea to try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code is very similar to Paige's code. It's using PROC SQL generate a macro variable that holds a list of variable names.&amp;nbsp; Paige's code uses a dictionary table as the source for variable names in a table, and Tom's code uses PROC CONTENTS to output a dataset with the variable names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note also Tom's suggestion to use the DATA step to parse the variable names into their logical components.&amp;nbsp; This way you could use PROC SQL to create a list of all variables from timepoint='A', or all variables with variableName='CGTDY'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A third alternative would be to use a data dictionary / codebook as a datasource.&amp;nbsp; Even when survey developers make poor decisions like creating a data format with thousands of variables, they usually will document the data.&amp;nbsp; So if you have access to a data dictionary that lists all of the variables, with the timepoint, label, etc, often that dictionary can be imported into a dataset and used as a source of helpful metadata.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 20:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886709#M39340</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-07-27T20:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886753#M39341</link>
      <description>&lt;P&gt;Often having a narrow and not a wide table makes things easier. But let's assume that the data you've got and need to keep below how you could create your keep list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create some sample data&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.have;
  set sashelp.class;
  length A09CGTDY I09CGTDY 8;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2. Select all variables where the name ends with DY (two possible expressions provided).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let keeplist=;
proc sql noprint;
  select name into :keeplist separated by ' '
  from dictionary.columns
  where 
    libname='WORK' and memname='HAVE' 
    and find(name,'DY','it',length(name)-1)
/*    and prxmatch('/DY$/oi',strip(name))*/
    ;
quit;
%put &amp;amp;=keeplist;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;3. Subset the data using &amp;amp;keeplist&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want1;
  set have(keep=&amp;amp;keeplist);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF the variables you want to keep are in sequence in your table then you can also use double dash notation in your keep option/statement. Proc Contents will show you the order.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=work.have order=varnum;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1690513452042.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86197i3C868037482901AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1690513452042.png" alt="Patrick_0-1690513452042.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Let's say you want to keep Name and all variables between Height and I09CGTDY then below keep notation would work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want2;
  set have(keep=name height--I09CGTDY);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 03:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/886753#M39341</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-07-28T03:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: List of variables based on suffix (not prefix)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/887040#M39355</link>
      <description>&lt;P&gt;I'm doing my best to figure this out. It's confusing for me and I appreciate all your help. I have a partial solution (below) that utilizes the approach provided by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
    select name into :colnames separated by ' ' /*  Selects the name variable, which would typically contain column names.;  */
/*  It then places the selected names into a macro variable named colnames, with each name separated by a space.; */
    from dictionary.columns
/*  This line specifies the source of the data, which is the dictionary.columns table in SAS.  */
/*  This is a special table that contains metadata about all available datasets, including column names. */
    where 
    
/* 	Age */
	substr(name,4) eq 'AGE' or
/* 	Education */
	substr(name,4) eq 'ED' or
	
/* 	BMI */
	substr(name,4) eq 'BMI' or
/* 	Note: Neither BMI nor height nor weight are available in the data I have. */

/* 	Exam dates */
/* 	Not including exam date 35 (see below as J02EXDAT) */
	substr(name,2) eq '02DATE' or
	
/*  Smoking status */
    substr(name,2) eq '10SMOKE'
       
        
    and libname='CARDIA' /* Whatever libname is needed goes here, upper case */
    and memname='C1260REQ06_29_2023' /* Your data set name goes here, upper case */
	;
quit;

/***********************************************************************************************************/
/* Creating a subset. */
/* &amp;amp;colnames (from above) is included in the KEEP statement. */
/***********************************************************************************************************/
data cardia.go;
    set CARDIA.C1260REQ06_29_2023;
    keep 
    ID
    SHORT_ID
	SEX
	race

/*  Suffix Variables  */
    &amp;amp;colnames

/*  Preffix Variables  */    
	CENTER:    
	
/* 	Per Lucia: The exam at Y35 was carried out in two phases. We are still discussing the best way to assemble a Reference File for this exam.  */
/* 	We have variable J02EXDAT. */
	J02EXDAT
	
/* 	TAKING DIABETES MEDS (1=NO,2=YES) at baseline */
	FDIABMED
    ;

    label J02EXDAT="DATE OF EXAM 10";
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above syntax allows me to use a list based on a suffix in a KEEP statement to create a subset (per my original post).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also like to be able to subset by prefix (e.g., subset all the variables from a particular timepoint; "A" = baseline).&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;offered an approach that looks like it might offer that, but I can't figure out how to go from the PROC SQL to a dataset. When I run a PROC PRINT on the "groups" dataset the variables are all under the column "names" and the other columns are all the metadata categories:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2023-07-30 at 3.15.12 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86251i916F4B71BD79225F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-07-30 at 3.15.12 PM.png" alt="Screenshot 2023-07-30 at 3.15.12 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;FONT face="inherit"&gt;Using what I've adapted from &lt;/FONT&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;FONT face="inherit"&gt;above (because at least I understand that part), Is there a way to create a variable that would allow me to subset by prefix?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cardia.go_a;
  set cardia.go;
  where prefix = "A";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 22:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/List-of-variables-based-on-suffix-not-prefix/m-p/887040#M39355</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2023-07-30T22:18:09Z</dc:date>
    </item>
  </channel>
</rss>

