<?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 Integrity Constraints-multiple var condition in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Integrity-Constraints-multiple-var-condition/m-p/14559#M2344</link>
    <description>I am working with Integrity constraints and want to be able to use a second var in the IC condition.&lt;BR /&gt;
 &lt;BR /&gt;
ic create X_chk = check &lt;BR /&gt;
         (where= (( Y = 1 and X ~=999) or (Y  =2 and X = 999)))&lt;BR /&gt;
&lt;BR /&gt;
Can I use two vars in an simple integrity constraint or do I have to check it against a second table?  Or is there some other method that I'm missing.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
    <pubDate>Mon, 03 May 2010 19:45:10 GMT</pubDate>
    <dc:creator>veblen</dc:creator>
    <dc:date>2010-05-03T19:45:10Z</dc:date>
    <item>
      <title>Integrity Constraints-multiple var condition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Integrity-Constraints-multiple-var-condition/m-p/14559#M2344</link>
      <description>I am working with Integrity constraints and want to be able to use a second var in the IC condition.&lt;BR /&gt;
 &lt;BR /&gt;
ic create X_chk = check &lt;BR /&gt;
         (where= (( Y = 1 and X ~=999) or (Y  =2 and X = 999)))&lt;BR /&gt;
&lt;BR /&gt;
Can I use two vars in an simple integrity constraint or do I have to check it against a second table?  Or is there some other method that I'm missing.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Mon, 03 May 2010 19:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Integrity-Constraints-multiple-var-condition/m-p/14559#M2344</guid>
      <dc:creator>veblen</dc:creator>
      <dc:date>2010-05-03T19:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Integrity Constraints-multiple var condition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Integrity-Constraints-multiple-var-condition/m-p/14560#M2345</link>
      <description>The syntax above is valid.</description>
      <pubDate>Mon, 03 May 2010 21:28:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Integrity-Constraints-multiple-var-condition/m-p/14560#M2345</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2010-05-03T21:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Integrity Constraints-multiple var condition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Integrity-Constraints-multiple-var-condition/m-p/14561#M2346</link>
      <description>Thanks Chris.  I appreciate the quick response.</description>
      <pubDate>Mon, 03 May 2010 23:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Integrity-Constraints-multiple-var-condition/m-p/14561#M2346</guid>
      <dc:creator>veblen</dc:creator>
      <dc:date>2010-05-03T23:31:22Z</dc:date>
    </item>
  </channel>
</rss>

