<?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: proc sql from dictionary.columns where column names begin with &amp;quot;CDD_&amp;quot;? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556942#M74768</link>
    <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/53873"&gt;@Chris&lt;/a&gt;_Hemedinger,&lt;BR /&gt;'ja ever notice how in NotePad++ the sql Language overlay jives real well with SAS? There's another but since most of the work I do with SAS is more than likely SQL-related (proc_sql_is_your_friend, where are you now? B|)</description>
    <pubDate>Tue, 07 May 2019 21:20:45 GMT</pubDate>
    <dc:creator>ccaulkins9</dc:creator>
    <dc:date>2019-05-07T21:20:45Z</dc:date>
    <item>
      <title>proc sql from dictionary.columns where column names begin with "CDD_"?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556564#M74760</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How would I modify this code to only select column names that begin with "CDD_"?&lt;BR /&gt;proc sql;&lt;BR /&gt;select name into :charlist separated by ' '&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where UPCASE(LIBNAME)="WORK" and upcase(memname)="ECM";&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 20:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556564#M74760</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2019-05-06T20:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql from dictionary.columns where column names begin with "CDD_"?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556566#M74761</link>
      <description>ADD: and name like 'CDD_%'</description>
      <pubDate>Mon, 06 May 2019 20:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556566#M74761</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-06T20:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql from dictionary.columns where column names begin with "CDD_"?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556567#M74762</link>
      <description>&lt;P&gt;add&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;and substr(name, 1, 4)="CDD_"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to your where clause&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 20:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556567#M74762</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-06T20:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql from dictionary.columns where column names begin with "CDD_"?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556568#M74763</link>
      <description>&lt;P&gt;AND, you can skip the UPCASE for libname and memname (because they are always upper case), but you do need it for the variable name:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select name into :charlist separated by ' '
from dictionary.columns
where libname="SASHELP" and memname="CARS" 
 and upcase(name) like "M%";
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt; Column Name
 --------------------
 Make                
 Model               
 MSRP                
 MPG_City            
 MPG_Highway         
&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 May 2019 20:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556568#M74763</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-05-06T20:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql from dictionary.columns where column names begin with "CDD_"?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556942#M74768</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/53873"&gt;@Chris&lt;/a&gt;_Hemedinger,&lt;BR /&gt;'ja ever notice how in NotePad++ the sql Language overlay jives real well with SAS? There's another but since most of the work I do with SAS is more than likely SQL-related (proc_sql_is_your_friend, where are you now? B|)</description>
      <pubDate>Tue, 07 May 2019 21:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-from-dictionary-columns-where-column-names-begin-with/m-p/556942#M74768</guid>
      <dc:creator>ccaulkins9</dc:creator>
      <dc:date>2019-05-07T21:20:45Z</dc:date>
    </item>
  </channel>
</rss>

