<?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 delete from DB2 table that has a qualifier ? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-delete-from-DB2-table-that-has-a-qualifier/m-p/70542#M20293</link>
    <description>Hi I want to delete rows from a db2 table as shown in below code. the table has a qualifier name followed by table name. ADRPMMT - is the table qualifier and INV_COMM_CONV_RATE  is the table name. But it is taking ADRPMMT as SAS libname. please let me know what change is required to the code.&lt;BR /&gt;
&lt;I&gt;22          PROC SQL;                                   &lt;BR /&gt;
23              CONNECT TO DB2(DB2SSID=DB39);                         &lt;BR /&gt;
24              DELETE FROM ADRPMMT.INV_COMM_CONV_RATE  &lt;BR /&gt;
25                     WHERE ROW_LOAD_DATE = &amp;amp;CHKDATE ; &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.                 &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.                 &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.                 &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.                 &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.                 &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.   &lt;/I&gt;</description>
    <pubDate>Wed, 21 Jan 2009 12:02:12 GMT</pubDate>
    <dc:creator>saroj</dc:creator>
    <dc:date>2009-01-21T12:02:12Z</dc:date>
    <item>
      <title>PROC SQL delete from DB2 table that has a qualifier ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-delete-from-DB2-table-that-has-a-qualifier/m-p/70542#M20293</link>
      <description>Hi I want to delete rows from a db2 table as shown in below code. the table has a qualifier name followed by table name. ADRPMMT - is the table qualifier and INV_COMM_CONV_RATE  is the table name. But it is taking ADRPMMT as SAS libname. please let me know what change is required to the code.&lt;BR /&gt;
&lt;I&gt;22          PROC SQL;                                   &lt;BR /&gt;
23              CONNECT TO DB2(DB2SSID=DB39);                         &lt;BR /&gt;
24              DELETE FROM ADRPMMT.INV_COMM_CONV_RATE  &lt;BR /&gt;
25                     WHERE ROW_LOAD_DATE = &amp;amp;CHKDATE ; &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.                 &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.                 &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.                 &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.                 &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.                 &lt;BR /&gt;
ERROR: Libname ADRPMMT is not assigned.   &lt;/I&gt;</description>
      <pubDate>Wed, 21 Jan 2009 12:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-delete-from-DB2-table-that-has-a-qualifier/m-p/70542#M20293</guid>
      <dc:creator>saroj</dc:creator>
      <dc:date>2009-01-21T12:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL delete from DB2 table that has a qualifier ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-delete-from-DB2-table-that-has-a-qualifier/m-p/70543#M20294</link>
      <description>If you are using DELETE FROM in "open" proc sql code, it will assume that twp level table names will contain a SAS libname. In fact, it requires that you first assign a libname to your DB2 database.&lt;BR /&gt;
&lt;BR /&gt;
But by using CONNECT TO, you are using SQL pass-thru. To use pass-thru to delete records enclose your DB2 specific SQL using execute:&lt;BR /&gt;
&lt;BR /&gt;
EXCUTE( ... ) BY DB2;&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Wed, 21 Jan 2009 12:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-delete-from-DB2-table-that-has-a-qualifier/m-p/70543#M20294</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-01-21T12:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL delete from DB2 table that has a qualifier ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-delete-from-DB2-table-that-has-a-qualifier/m-p/70544#M20295</link>
      <description>Thanks Linus , it worked !</description>
      <pubDate>Thu, 22 Jan 2009 05:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-delete-from-DB2-table-that-has-a-qualifier/m-p/70544#M20295</guid>
      <dc:creator>saroj</dc:creator>
      <dc:date>2009-01-22T05:07:24Z</dc:date>
    </item>
  </channel>
</rss>

