<?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 PROC SQL SELECT * where {all obs that are entirley in caps no matter the word}? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-where-all-obs-that-are-entirley-in-caps-no/m-p/457342#M115942</link>
    <description>&lt;P&gt;Hello All,&lt;BR /&gt;I have a need to select all records no matter what the contents might be if the word is entirely in caps?&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Does anyone have a good approach on this?&amp;nbsp; I was looking at 'compress' then select not null and am failing to get it.&amp;nbsp; Maybe I just have not come up with the right mix in the 'compress' command, or maybe it will not work (if I get mixed case)&lt;BR /&gt;PS I am searching metadata and all keys to the tables I care about have been added in all caps all non keys* have been entered in lower case is why I care...&amp;nbsp; [*or should have been &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; ]&lt;/P&gt;
&lt;P&gt;Have:&lt;/P&gt;
&lt;P&gt;table_name column_name&lt;BR /&gt;xw_school EXT_ORG_ID&lt;BR /&gt;xw_school atp_cd&lt;BR /&gt;xw_school eff_status&lt;BR /&gt;xw_school Ext_Org_City*&lt;BR /&gt;xw_school ext_org_country&lt;BR /&gt;xw_school ext_org_country_descr&lt;BR /&gt;xw_school ext_org_county&lt;BR /&gt;xw_school ext_org_descr&lt;BR /&gt;xw_school ext_org_descr50&lt;BR /&gt;xw_school EXT_org_descrshort*&lt;BR /&gt;xw_term ACAD_CAREER&lt;BR /&gt;xw_term STRM&lt;BR /&gt;xw_term acad_year&lt;BR /&gt;xw_term aid_year&lt;BR /&gt;xw_term fiscal_year&lt;BR /&gt;xw_term full_acad_year&lt;BR /&gt;xw_term session_code&lt;BR /&gt;xw_term term_30th_dt&lt;BR /&gt;xw_term term_begin_dt&lt;BR /&gt;xw_term term_census_dt&lt;BR /&gt;xw_term term_code&lt;BR /&gt;xw_term term_descr&lt;BR /&gt;xw_term term_descr15&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;want:&lt;BR /&gt;xw_school EXT_ORG_ID&lt;BR /&gt;xw_term ACAD_CAREER&lt;BR /&gt;xw_term STRM&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 15:11:47 GMT</pubDate>
    <dc:creator>kjohnsonm</dc:creator>
    <dc:date>2018-04-25T15:11:47Z</dc:date>
    <item>
      <title>PROC SQL SELECT * where {all obs that are entirley in caps no matter the word}?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-where-all-obs-that-are-entirley-in-caps-no/m-p/457342#M115942</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;I have a need to select all records no matter what the contents might be if the word is entirely in caps?&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Does anyone have a good approach on this?&amp;nbsp; I was looking at 'compress' then select not null and am failing to get it.&amp;nbsp; Maybe I just have not come up with the right mix in the 'compress' command, or maybe it will not work (if I get mixed case)&lt;BR /&gt;PS I am searching metadata and all keys to the tables I care about have been added in all caps all non keys* have been entered in lower case is why I care...&amp;nbsp; [*or should have been &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; ]&lt;/P&gt;
&lt;P&gt;Have:&lt;/P&gt;
&lt;P&gt;table_name column_name&lt;BR /&gt;xw_school EXT_ORG_ID&lt;BR /&gt;xw_school atp_cd&lt;BR /&gt;xw_school eff_status&lt;BR /&gt;xw_school Ext_Org_City*&lt;BR /&gt;xw_school ext_org_country&lt;BR /&gt;xw_school ext_org_country_descr&lt;BR /&gt;xw_school ext_org_county&lt;BR /&gt;xw_school ext_org_descr&lt;BR /&gt;xw_school ext_org_descr50&lt;BR /&gt;xw_school EXT_org_descrshort*&lt;BR /&gt;xw_term ACAD_CAREER&lt;BR /&gt;xw_term STRM&lt;BR /&gt;xw_term acad_year&lt;BR /&gt;xw_term aid_year&lt;BR /&gt;xw_term fiscal_year&lt;BR /&gt;xw_term full_acad_year&lt;BR /&gt;xw_term session_code&lt;BR /&gt;xw_term term_30th_dt&lt;BR /&gt;xw_term term_begin_dt&lt;BR /&gt;xw_term term_census_dt&lt;BR /&gt;xw_term term_code&lt;BR /&gt;xw_term term_descr&lt;BR /&gt;xw_term term_descr15&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;want:&lt;BR /&gt;xw_school EXT_ORG_ID&lt;BR /&gt;xw_term ACAD_CAREER&lt;BR /&gt;xw_term STRM&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-where-all-obs-that-are-entirley-in-caps-no/m-p/457342#M115942</guid>
      <dc:creator>kjohnsonm</dc:creator>
      <dc:date>2018-04-25T15:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL SELECT * where {all obs that are entirley in caps no matter the word}?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-where-all-obs-that-are-entirley-in-caps-no/m-p/457349#M115947</link>
      <description>&lt;P&gt;Couldn't you use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where column_name = upcase(column_name)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-where-all-obs-that-are-entirley-in-caps-no/m-p/457349#M115947</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-04-25T15:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL SELECT * where {all obs that are entirley in caps no matter the word}?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-where-all-obs-that-are-entirley-in-caps-no/m-p/457350#M115948</link>
      <description>&lt;PRE&gt;select * from have where lengthn(compress(column_name,"","u")) =0;
&lt;/PRE&gt;
&lt;P&gt;This will compress out all uppercase characters, and thus if the length = 0 there is only upper case.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-where-all-obs-that-are-entirley-in-caps-no/m-p/457350#M115948</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-25T15:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL SELECT * where {all obs that are entirley in caps no matter the word}?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-where-all-obs-that-are-entirley-in-caps-no/m-p/457356#M115952</link>
      <description>&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: '&amp;amp;quot',serif; color: #333333;"&gt;A variation on what you have:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;orphans: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: '&amp;amp;quot',serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;orphans: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: '&amp;amp;quot',serif; color: #333333;"&gt;proc sql;&lt;BR style="background-clip: border-box; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-size: auto; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;word-wrap: break-word; background-attachment: scroll;" /&gt; select &lt;BR style="background-clip: border-box; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-size: auto; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;word-wrap: break-word; background-attachment: scroll;" /&gt; &amp;nbsp;TABLE_NAME&lt;BR style="background-clip: border-box; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-size: auto; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;word-wrap: break-word; background-attachment: scroll;" /&gt; ,COLUMN_NAME&lt;BR style="background-clip: border-box; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-size: auto; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;word-wrap: break-word; background-attachment: scroll;" /&gt; ,compress(COLUMN_NAME,,"KUP") as keep_upper&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;orphans: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: '&amp;amp;quot',serif; color: #333333;"&gt;from my_metadata&lt;BR style="background-clip: border-box; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-size: auto; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;word-wrap: break-word; background-attachment: scroll;" /&gt; where &lt;BR style="background-clip: border-box; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-size: auto; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;word-wrap: break-word; background-attachment: scroll;" /&gt;compress(COLUMN_NAME,"","KU") is not null and COLUMN_NAME = compress(COLUMN_NAME,"","KU")&lt;BR style="background-clip: border-box; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-size: auto; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;word-wrap: break-word; background-attachment: scroll;" /&gt; ;&lt;BR style="background-clip: border-box; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-size: auto; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;word-wrap: break-word; background-attachment: scroll;" /&gt; quit;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;orphans: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: '&amp;amp;quot',serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;orphans: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: '&amp;amp;quot',serif; color: #333333;"&gt;/* K for keep, U upper case, P punctuation keeps the _&amp;nbsp; life is golden */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;orphans: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: '&amp;amp;quot',serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; helevticaneue-light&amp;quot;&amp;quot;helvetica neue&amp;quot;helvetica,arial,sans-serif;orphans: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: '&amp;amp;quot',serif; color: #333333;"&gt;thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-SELECT-where-all-obs-that-are-entirley-in-caps-no/m-p/457356#M115952</guid>
      <dc:creator>kjohnsonm</dc:creator>
      <dc:date>2018-04-25T15:33:42Z</dc:date>
    </item>
  </channel>
</rss>

