<?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: Error creating a integrity constraint for permanent library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-creating-a-integrity-constraint-for-permanent-library/m-p/440350#M109971</link>
    <description>&lt;P&gt;Your code is incorrect in specifying the libname and data set name. Your first example only happens to work because the default library is work, otherwise you specify the LIB in the PROC DATASETS statement and the data set name in the MODIFY statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=darshik;
modify insurance_master;
ic create val_unsb=check(where=(unsb in(0,1)))
message='Valid values are either 0 or 1';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/191208"&gt;@Darshik&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created the below program create an integrity constraint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The program successfully runs when I create it using work library. Below is the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc datasets;&lt;BR /&gt;modify insurance_master;&lt;BR /&gt;ic create val_unsb=check(where=(unsb in(0,1)))&lt;BR /&gt;message='Valid values are either 0 or 1';&lt;BR /&gt;quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I get the below error message when I try to create the same file in my permanent library. Below is code and log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc datasets;&lt;BR /&gt;modify darshik.insurance_master;&lt;BR /&gt;ic create val_unsb=check(where=(unsb in(0,1)))&lt;BR /&gt;message='Valid values are either 0 or 1';&lt;BR /&gt;quit;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;&lt;EM&gt;73 proc datasets;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&lt;EM&gt;74 modify&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;darshik&lt;EM&gt;.insurance_master;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&lt;EM&gt;________________________&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&lt;EM&gt;22&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&lt;EM&gt;201&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&lt;EM&gt;ERROR 22-322: Expecting a name.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&lt;EM&gt;ERROR 201-322: The option is not recognized and will be ignored.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&lt;EM&gt;75 ic create val_unsb=check(where=(unsb in(0,1)))&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: Enter RUN; to continue or QUIT; to end the procedure.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&lt;EM&gt;76 message='Valid values are either 0 or 1';&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&lt;EM&gt;77 quit;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: Statements not processed because of errors noted above.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: PROCEDURE DATASETS used (Total process time):&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;real time 0.24 seconds&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;time 0.23 seconds&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;I am unable to understand this error and how to resolve it.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;Note: I am using the free SAS Studio University Edition&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Thanks in advance for your help and insight &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 21:38:56 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-26T21:38:56Z</dc:date>
    <item>
      <title>Error creating a integrity constraint for permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-creating-a-integrity-constraint-for-permanent-library/m-p/440349#M109970</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the below program create an integrity constraint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program successfully runs when I create it using work library. Below is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc datasets;&lt;BR /&gt;modify insurance_master;&lt;BR /&gt;ic create val_unsb=check(where=(unsb in(0,1)))&lt;BR /&gt;message='Valid values are either 0 or 1';&lt;BR /&gt;quit;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I get the below error message when I try to create the same file in my permanent library. Below is code and log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc datasets;&lt;BR /&gt;modify darshik.insurance_master;&lt;BR /&gt;ic create val_unsb=check(where=(unsb in(0,1)))&lt;BR /&gt;message='Valid values are either 0 or 1';&lt;BR /&gt;quit;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="sasSource"&gt;&lt;EM&gt;73 proc datasets;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;EM&gt;74 modify&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;darshik&lt;EM&gt;.insurance_master;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;EM&gt;________________________&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;EM&gt;22&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;EM&gt;201&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;EM&gt;ERROR 22-322: Expecting a name.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;EM&gt;ERROR 201-322: The option is not recognized and will be ignored.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;EM&gt;75 ic create val_unsb=check(where=(unsb in(0,1)))&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: Enter RUN; to continue or QUIT; to end the procedure.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;EM&gt;76 message='Valid values are either 0 or 1';&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;EM&gt;77 quit;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: Statements not processed because of errors noted above.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: PROCEDURE DATASETS used (Total process time):&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;EM&gt;real time 0.24 seconds&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;time 0.23 seconds&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;I am unable to understand this error and how to resolve it.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;EM&gt;Note: I am using the free SAS Studio University Edition&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Thanks in advance for your help and insight &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Feb 2018 21:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-creating-a-integrity-constraint-for-permanent-library/m-p/440349#M109970</guid>
      <dc:creator>Darshik</dc:creator>
      <dc:date>2018-02-26T21:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating a integrity constraint for permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-creating-a-integrity-constraint-for-permanent-library/m-p/440350#M109971</link>
      <description>&lt;P&gt;Your code is incorrect in specifying the libname and data set name. Your first example only happens to work because the default library is work, otherwise you specify the LIB in the PROC DATASETS statement and the data set name in the MODIFY statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=darshik;
modify insurance_master;
ic create val_unsb=check(where=(unsb in(0,1)))
message='Valid values are either 0 or 1';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/191208"&gt;@Darshik&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created the below program create an integrity constraint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The program successfully runs when I create it using work library. Below is the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc datasets;&lt;BR /&gt;modify insurance_master;&lt;BR /&gt;ic create val_unsb=check(where=(unsb in(0,1)))&lt;BR /&gt;message='Valid values are either 0 or 1';&lt;BR /&gt;quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I get the below error message when I try to create the same file in my permanent library. Below is code and log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc datasets;&lt;BR /&gt;modify darshik.insurance_master;&lt;BR /&gt;ic create val_unsb=check(where=(unsb in(0,1)))&lt;BR /&gt;message='Valid values are either 0 or 1';&lt;BR /&gt;quit;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;&lt;EM&gt;73 proc datasets;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&lt;EM&gt;74 modify&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;darshik&lt;EM&gt;.insurance_master;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&lt;EM&gt;________________________&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&lt;EM&gt;22&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&lt;EM&gt;201&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&lt;EM&gt;ERROR 22-322: Expecting a name.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&lt;EM&gt;ERROR 201-322: The option is not recognized and will be ignored.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&lt;EM&gt;75 ic create val_unsb=check(where=(unsb in(0,1)))&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: Enter RUN; to continue or QUIT; to end the procedure.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&lt;EM&gt;76 message='Valid values are either 0 or 1';&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&lt;EM&gt;77 quit;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: Statements not processed because of errors noted above.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;NOTE: PROCEDURE DATASETS used (Total process time):&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;real time 0.24 seconds&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;time 0.23 seconds&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;I am unable to understand this error and how to resolve it.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;Note: I am using the free SAS Studio University Edition&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Thanks in advance for your help and insight &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 21:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-creating-a-integrity-constraint-for-permanent-library/m-p/440350#M109971</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-26T21:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating a integrity constraint for permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-creating-a-integrity-constraint-for-permanent-library/m-p/440645#M110124</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error makes sense to me now. I have been practicing different proc statements to&amp;nbsp;be more fluent with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the solution, will keep that in mind &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 19:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-creating-a-integrity-constraint-for-permanent-library/m-p/440645#M110124</guid>
      <dc:creator>Darshik</dc:creator>
      <dc:date>2018-02-27T19:49:26Z</dc:date>
    </item>
  </channel>
</rss>

