<?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: PROC SQL INDEXES in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/490288#M72100</link>
    <description>&lt;P&gt;Thanks, Chris.&amp;nbsp; The variable/column MRN has unique values.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2018 00:26:20 GMT</pubDate>
    <dc:creator>dataMart87</dc:creator>
    <dc:date>2018-08-28T00:26:20Z</dc:date>
    <item>
      <title>PROC SQL INDEXES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/490280#M72097</link>
      <description>&lt;P&gt;Do the two statements below create different kinds of indexes?&amp;nbsp; The variable MRN has unique values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; CREATE INDEX MRN ON TASK1(MRN);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CREATE UNIQUE INDEX MRN ON TASK1(MRN);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Running on SAS 9.4M1&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 22:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/490280#M72097</guid>
      <dc:creator>dataMart87</dc:creator>
      <dc:date>2018-08-27T22:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL INDEXES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/490284#M72098</link>
      <description>&lt;P&gt;They do - the first allows duplicate index values and the second doesn't e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         data class;
 74         set sashelp.class;
 75         run;
 
 NOTE: There were 19 observations read from the data set SASHELP.CLASS.
 NOTE: The data set WORK.CLASS has 19 observations and 5 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 
 76         
 77         
 78         proc sql;
 79         create index sex on class(sex);
 NOTE: Simple index sex has been defined.
 80         quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 81         
 82         
 83         data class;
 84         set sashelp.class;
 85         run;
 
 NOTE: There were 19 observations read from the data set SASHELP.CLASS.
 NOTE: The data set WORK.CLASS has 19 observations and 5 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 
 86         
 87         proc sql;
 88         create unique index sex on class(sex);
 ERROR: Duplicate values not allowed on index Sex for file CLASS.
 NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
 89         quit;
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 90         
 91         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 104        &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Aug 2018 23:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/490284#M72098</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-08-27T23:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL INDEXES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/490288#M72100</link>
      <description>&lt;P&gt;Thanks, Chris.&amp;nbsp; The variable/column MRN has unique values.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 00:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/490288#M72100</guid>
      <dc:creator>dataMart87</dc:creator>
      <dc:date>2018-08-28T00:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL INDEXES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/490305#M72102</link>
      <description>&lt;P&gt;With the UNIQUE property, future insertions into your table will forbid duplicate keys.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 02:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/490305#M72102</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-08-28T02:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL INDEXES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/491703#M72193</link>
      <description>&lt;P&gt;Ahh.&amp;nbsp; Thanks, PG.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 17:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-INDEXES/m-p/491703#M72193</guid>
      <dc:creator>dataMart87</dc:creator>
      <dc:date>2018-08-31T17:49:51Z</dc:date>
    </item>
  </channel>
</rss>

