<?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 NOT CONTAINS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOT-CONTAINS/m-p/319630#M61904</link>
    <description>Contains will check for character string , however your goal is to check for numeric if its not present. &lt;BR /&gt;so try to replace the label not contains with the below code &lt;BR /&gt;&lt;BR /&gt;compress(label,'kd') eq '';&lt;BR /&gt;&lt;BR /&gt;This way we are keeping only the numeric values in label and they should be missing. So only the variables with labels with no year are selected.</description>
    <pubDate>Fri, 16 Dec 2016 19:53:30 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2016-12-16T19:53:30Z</dc:date>
    <item>
      <title>PROC SQL NOT CONTAINS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOT-CONTAINS/m-p/319627#M61903</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using proc sql to pull the variable names and labels from a datafile I have and put them into macro vars (one each for varnames and labels). The issue is that I only want to pull in the varname+label pairs for those variables that do not have year values in the labels. This is what I've tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select name, label&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into :varnames separated by ' ', :varlabels separated by '#'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where upcase(libname)='MYLIB' and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; upcase(memname)='DATAFILE1' and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label not contains ('%20%');&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It runs without any error messages, but it pulls in all variables even if the labels do have years in them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 19:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOT-CONTAINS/m-p/319627#M61903</guid>
      <dc:creator>Walternate</dc:creator>
      <dc:date>2016-12-16T19:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL NOT CONTAINS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOT-CONTAINS/m-p/319630#M61904</link>
      <description>Contains will check for character string , however your goal is to check for numeric if its not present. &lt;BR /&gt;so try to replace the label not contains with the below code &lt;BR /&gt;&lt;BR /&gt;compress(label,'kd') eq '';&lt;BR /&gt;&lt;BR /&gt;This way we are keeping only the numeric values in label and they should be missing. So only the variables with labels with no year are selected.</description>
      <pubDate>Fri, 16 Dec 2016 19:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOT-CONTAINS/m-p/319630#M61904</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-12-16T19:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL NOT CONTAINS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOT-CONTAINS/m-p/319638#M61906</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;label not contains '20'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;label not like '%20%'&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 20:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOT-CONTAINS/m-p/319638#M61906</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-12-16T20:37:36Z</dc:date>
    </item>
  </channel>
</rss>

