<?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 DB2UTIL  table name too long in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DB2UTIL-table-name-too-long/m-p/41021#M10600</link>
    <description>I am trying to delete records from a db2 table using proc DB2UTIL as shown below on os/390. As table name is too long I am getting following error &lt;BR /&gt;
&lt;BR /&gt;
data indate; &lt;BR /&gt;
deldate = '30NOV08' ;&lt;BR /&gt;
&lt;BR /&gt;
options db2ssid=dbXX ; &lt;BR /&gt;
proc db2util &lt;BR /&gt;
data = indate &lt;BR /&gt;
table = aaaaaaa.mmmmm_eee_xxxx_yyyy &lt;BR /&gt;
function=delete update; &lt;BR /&gt;
where calendar_dt = %deldate; &lt;BR /&gt;
sqlout = sqlfile; &lt;BR /&gt;
update; &lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
As existing table name is too long, I am getting the following error. &lt;BR /&gt;
DSNT408I SQLCODE = -204, ERROR: aaaaaaa.mmmmm_eee_xxxx_yy . If you observe the last two bytes are truncated. The table has 5million rows, so I am not able to create view also. Can anyone suggest how to handle this?</description>
    <pubDate>Fri, 15 Jan 2010 05:26:22 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-01-15T05:26:22Z</dc:date>
    <item>
      <title>PROC DB2UTIL  table name too long</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DB2UTIL-table-name-too-long/m-p/41021#M10600</link>
      <description>I am trying to delete records from a db2 table using proc DB2UTIL as shown below on os/390. As table name is too long I am getting following error &lt;BR /&gt;
&lt;BR /&gt;
data indate; &lt;BR /&gt;
deldate = '30NOV08' ;&lt;BR /&gt;
&lt;BR /&gt;
options db2ssid=dbXX ; &lt;BR /&gt;
proc db2util &lt;BR /&gt;
data = indate &lt;BR /&gt;
table = aaaaaaa.mmmmm_eee_xxxx_yyyy &lt;BR /&gt;
function=delete update; &lt;BR /&gt;
where calendar_dt = %deldate; &lt;BR /&gt;
sqlout = sqlfile; &lt;BR /&gt;
update; &lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
As existing table name is too long, I am getting the following error. &lt;BR /&gt;
DSNT408I SQLCODE = -204, ERROR: aaaaaaa.mmmmm_eee_xxxx_yy . If you observe the last two bytes are truncated. The table has 5million rows, so I am not able to create view also. Can anyone suggest how to handle this?</description>
      <pubDate>Fri, 15 Jan 2010 05:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DB2UTIL-table-name-too-long/m-p/41021#M10600</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-15T05:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DB2UTIL  table name too long</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-DB2UTIL-table-name-too-long/m-p/41022#M10601</link>
      <description>The documentation states that db2util is compatible with SAS version 5. Maybe that affects the possibility to specify table name longer than 8 bytes...?&lt;BR /&gt;
Another odd thing is how you refer to %deldate, can't see it defined in your program.&lt;BR /&gt;
But as also declared in documentation, it's recommended to move from db2util to a libname approach, using regular SQL (which would probably be a implicit pass-thru to DB2).&lt;BR /&gt;
/Linus</description>
      <pubDate>Fri, 15 Jan 2010 11:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-DB2UTIL-table-name-too-long/m-p/41022#M10601</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2010-01-15T11:18:44Z</dc:date>
    </item>
  </channel>
</rss>

