<?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: Create a table in ODBC which require secondary qualifier in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Create-a-table-in-ODBC-which-require-secondary-qualifier/m-p/176300#M2282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jaap for the quick response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a example with the appropiate syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a new concept for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2014 15:33:05 GMT</pubDate>
    <dc:creator>Dataanalyst313</dc:creator>
    <dc:date>2014-07-11T15:33:05Z</dc:date>
    <item>
      <title>Create a table in ODBC which require secondary qualifier</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Create-a-table-in-ODBC-which-require-secondary-qualifier/m-p/176298#M2280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With a text editor I can write SQL to create a table on the server; however, there is a secondary qualifier ( IN STATEMENT) which must be attached to the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example of text editor SQL:&lt;/P&gt;&lt;P&gt; ---ConnectString=ODBC;DSN=DB2AAAA&lt;/P&gt;&lt;P&gt;&amp;nbsp; create TABLE&amp;nbsp; ANY_TABLE&lt;/P&gt;&lt;P&gt;&amp;nbsp; (MEM_ID (6) Not Null)&lt;/P&gt;&lt;P&gt;&amp;nbsp; IN X2222221.X2222222&lt;/P&gt;&lt;P&gt; ;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to integrate X2222221.X2222222 in my DBLOAD statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;dbload&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;dbms&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=ODBC &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=OUTSAS.TEST;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; &lt;BR /&gt;DSN = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'db2aaaa'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;&lt;BR /&gt;uid=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'anyid'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;&lt;BR /&gt;pwd=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'anypassword'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;TABLE = test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;l&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;oad&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;Without the statement I receive the error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: CLI execute error: [IBM][CLI Driver][DB2] SQL0551N&amp;nbsp; "anyid" does not have the &lt;/P&gt;&lt;P&gt;privilege to perform operation "CREATE TABLESPACE" on object "BP20".&amp;nbsp; SQLSTATE=42501 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Courier New;"&gt;Any help would be greatly appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 14:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Create-a-table-in-ODBC-which-require-secondary-qualifier/m-p/176298#M2280</guid>
      <dc:creator>Dataanalyst313</dc:creator>
      <dc:date>2014-07-11T14:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table in ODBC which require secondary qualifier</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Create-a-table-in-ODBC-which-require-secondary-qualifier/m-p/176299#M2281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are messing the schema concept (sometimes database). The first fixed name to access tables is that one.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 15:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Create-a-table-in-ODBC-which-require-secondary-qualifier/m-p/176299#M2281</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-11T15:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table in ODBC which require secondary qualifier</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Create-a-table-in-ODBC-which-require-secondary-qualifier/m-p/176300#M2282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jaap for the quick response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a example with the appropiate syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a new concept for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 15:33:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Create-a-table-in-ODBC-which-require-secondary-qualifier/m-p/176300#M2282</guid>
      <dc:creator>Dataanalyst313</dc:creator>
      <dc:date>2014-07-11T15:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table in ODBC which require secondary qualifier</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Create-a-table-in-ODBC-which-require-secondary-qualifier/m-p/176301#M2283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the ODBC this definition has been put hidden in the odbc.ini file. With Oracle it is the schema option, with DB2 the SSID.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#n1ht6mv0wybbzkn1x4np6nnlwzu6.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#n1ht6mv0wybbzkn1x4np6nnlwzu6.htm"&gt;SAS/ACCESS(R) 9.3 for Relational Databases: Reference, Second Edition&lt;/A&gt; (odbc start).&lt;/P&gt;&lt;P&gt;The connection options can be coded along with SAS statements, this is a list: &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#p0bu3zsz1a08ton1msxdx1jo45np.htm#p1ct6uq4t2x91wn1bq6mfkosqwnm" title="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#p0bu3zsz1a08ton1msxdx1jo45np.htm#p1ct6uq4t2x91wn1bq6mfkosqwnm"&gt;SAS/ACCESS(R) 9.3 for Relational Databases: Reference, Second Edition&lt;/A&gt; (libname odbdc)&lt;/P&gt;&lt;P&gt;Samples are there when you click. See the Schema as the first part of that two level naming with tables at databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are needing two different llibname with each an other schema (dsn) the effect will be SAS is copying all data to SAS and executing it there.&lt;BR /&gt;To prevent that do something with DB-session binding or use explicit SQL pass through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your error could be indicating you have no access to create tables in that dedicated area.&lt;BR /&gt;Often the DBA is reserving changing table structures as his task (Data Definition Language)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 15:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Create-a-table-in-ODBC-which-require-secondary-qualifier/m-p/176301#M2283</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-11T15:54:58Z</dc:date>
    </item>
  </channel>
</rss>

