<?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: Table constraints missing when creating a data set based on an oracle table in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33812#M8196</link>
    <description>Doc,&lt;BR /&gt;
Thank you so much for your response.  &lt;BR /&gt;
&lt;BR /&gt;
So when I try and create a data set based off of an oracle table or a different sas data set that have primary or foreign keys why doesn't those keys come along with the new data set?  &lt;BR /&gt;
&lt;BR /&gt;
Thank you</description>
    <pubDate>Mon, 14 Jun 2010 12:16:16 GMT</pubDate>
    <dc:creator>jerry898969</dc:creator>
    <dc:date>2010-06-14T12:16:16Z</dc:date>
    <item>
      <title>Table constraints missing when creating a data set based on an oracle table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33810#M8194</link>
      <description>I want to make a local copy of an oracle table. I need all the indexs, constraints, PK, etc..&lt;BR /&gt;
&lt;BR /&gt;
When I do the following I just get the data without any of the constraints.&lt;BR /&gt;
&lt;BR /&gt;
data tree_node ;&lt;BR /&gt;
	set ora.tree_node ;&lt;BR /&gt;
run ;&lt;BR /&gt;
&lt;BR /&gt;
What is the best way to get the exact table definition as it is within oracle ?&lt;BR /&gt;
&lt;BR /&gt;
thank you</description>
      <pubDate>Thu, 10 Jun 2010 14:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33810#M8194</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2010-06-10T14:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Table constraints missing when creating a data set based on an oracle table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33811#M8195</link>
      <description>SAS does not support table constraints, so you can't extract it except as a text file.</description>
      <pubDate>Fri, 11 Jun 2010 15:56:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33811#M8195</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-06-11T15:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table constraints missing when creating a data set based on an oracle table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33812#M8196</link>
      <description>Doc,&lt;BR /&gt;
Thank you so much for your response.  &lt;BR /&gt;
&lt;BR /&gt;
So when I try and create a data set based off of an oracle table or a different sas data set that have primary or foreign keys why doesn't those keys come along with the new data set?  &lt;BR /&gt;
&lt;BR /&gt;
Thank you</description>
      <pubDate>Mon, 14 Jun 2010 12:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33812#M8196</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2010-06-14T12:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table constraints missing when creating a data set based on an oracle table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33813#M8197</link>
      <description>Jerry,&lt;BR /&gt;
&lt;BR /&gt;
From the SAS SQL documentation, "The SQL research project at SAS has focused primarily on the expressive power of SQL as a query language. Consequently, some of the database features of SQL have not yet been implemented in PROC SQL."&lt;BR /&gt;
&lt;BR /&gt;
To understand all the differences (there are lots), you will need to read all about SAS Datasets in the BASE documentation concepts area and the differences between SAS SQL and ANSI SQL.&lt;BR /&gt;
&lt;BR /&gt;
Doc</description>
      <pubDate>Mon, 14 Jun 2010 13:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33813#M8197</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-06-14T13:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table constraints missing when creating a data set based on an oracle table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33814#M8198</link>
      <description>Doc,&lt;BR /&gt;
&lt;BR /&gt;
Thank you I will look at the documentation.  &lt;BR /&gt;
&lt;BR /&gt;
I made the mistake of assuming since I was creating a data set based off of another data set that the PK and FK would carry along with it.   &lt;BR /&gt;
&lt;BR /&gt;
Thank You</description>
      <pubDate>Mon, 14 Jun 2010 13:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33814#M8198</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2010-06-14T13:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table constraints missing when creating a data set based on an oracle table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33815#M8199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS does support integrity constraints but they do not come along with the data when you create a data set from an Oracle table.&amp;nbsp; They must be recreated using PROC DATASETS.&amp;nbsp; Here's a link to Mike Raithel's 2011 SGF paper.&amp;nbsp; It's a .pdf so just search on 'constraint'.&amp;nbsp; &lt;A href="http://support.sas.com/resources/papers/proceedings11/274-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/274-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the primary key and foreign key physically exist as fields in an Oracle table I don't know of any reason why they wouldn't be in the SAS data set, but there won't be anything other than the variable name to indicate that they are the PK and FK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 21:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Table-constraints-missing-when-creating-a-data-set-based-on-an/m-p/33815#M8199</guid>
      <dc:creator>bentleyj1</dc:creator>
      <dc:date>2013-02-01T21:20:00Z</dc:date>
    </item>
  </channel>
</rss>

