<?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: dropping an entry from list in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-dropping-an-entry-from-list/m-p/314564#M61559</link>
    <description>&lt;P&gt;Hello! So I need to create a list using proc sql because I am running a statistical test that runs a bunch of tests cross referencing the variables called for in the variable list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My proc sql code is:&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;BR /&gt;select name into :tier1snps separated by ' '&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where libname=upcase("work") and memname=upcase("domsnp")&lt;BR /&gt;and (substr(name, 1, 3) in ('dom') or substr(name,1) in ('DOM_RS10462018','DOM_RS7107287','DOM_RS11022778','DOM_RS969485'));&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list I get when I do&amp;nbsp;%put &amp;amp;tier1snps is:&lt;/P&gt;&lt;P&gt;DOM_RS10462018&amp;nbsp;dom_rs12915776 dom_rs8041466 dom_rs4775351 dom_rs34720147&lt;/P&gt;&lt;P&gt;dom_rs2305159 DOM_RS7107287 dom_rs1801260 dom_rs1982350 DOM_RS969485&lt;/P&gt;&lt;P&gt;dom_rs2414680 dom_rs11071557 dom_rs809736 dom_rs782931 dom_rs4774388&lt;/P&gt;&lt;P&gt;DOM_RS11022778 dom_rs13329238 dom_rs12906588 dom_rs738499 dom_rs5758324&lt;/P&gt;&lt;P&gt;dom_rs8023563&lt;BR /&gt;dom_rs16943472 dom_rs2267150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get rid of the last entry "dom_rs2267150" but I cannot figure out how to manually drop entries, although I figured out how to manually add entries. This would be a great help! Thank yo uso much!&lt;/P&gt;</description>
    <pubDate>Sun, 27 Nov 2016 07:47:32 GMT</pubDate>
    <dc:creator>ljung</dc:creator>
    <dc:date>2016-11-27T07:47:32Z</dc:date>
    <item>
      <title>PROC SQL: dropping an entry from list</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-dropping-an-entry-from-list/m-p/314564#M61559</link>
      <description>&lt;P&gt;Hello! So I need to create a list using proc sql because I am running a statistical test that runs a bunch of tests cross referencing the variables called for in the variable list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My proc sql code is:&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;BR /&gt;select name into :tier1snps separated by ' '&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where libname=upcase("work") and memname=upcase("domsnp")&lt;BR /&gt;and (substr(name, 1, 3) in ('dom') or substr(name,1) in ('DOM_RS10462018','DOM_RS7107287','DOM_RS11022778','DOM_RS969485'));&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list I get when I do&amp;nbsp;%put &amp;amp;tier1snps is:&lt;/P&gt;&lt;P&gt;DOM_RS10462018&amp;nbsp;dom_rs12915776 dom_rs8041466 dom_rs4775351 dom_rs34720147&lt;/P&gt;&lt;P&gt;dom_rs2305159 DOM_RS7107287 dom_rs1801260 dom_rs1982350 DOM_RS969485&lt;/P&gt;&lt;P&gt;dom_rs2414680 dom_rs11071557 dom_rs809736 dom_rs782931 dom_rs4774388&lt;/P&gt;&lt;P&gt;DOM_RS11022778 dom_rs13329238 dom_rs12906588 dom_rs738499 dom_rs5758324&lt;/P&gt;&lt;P&gt;dom_rs8023563&lt;BR /&gt;dom_rs16943472 dom_rs2267150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get rid of the last entry "dom_rs2267150" but I cannot figure out how to manually drop entries, although I figured out how to manually add entries. This would be a great help! Thank yo uso much!&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-dropping-an-entry-from-list/m-p/314564#M61559</guid>
      <dc:creator>ljung</dc:creator>
      <dc:date>2016-11-27T07:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL: dropping an entry from list</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-dropping-an-entry-from-list/m-p/314566#M61560</link>
      <description>&lt;P&gt;Add another condition to your query:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And name not in (exclusion list);&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-dropping-an-entry-from-list/m-p/314566#M61560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-27T07:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL: dropping an entry from list</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-dropping-an-entry-from-list/m-p/314567#M61561</link>
      <description>Thank you so much! That worked perfectly!</description>
      <pubDate>Sun, 27 Nov 2016 08:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-dropping-an-entry-from-list/m-p/314567#M61561</guid>
      <dc:creator>ljung</dc:creator>
      <dc:date>2016-11-27T08:06:49Z</dc:date>
    </item>
  </channel>
</rss>

