<?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: sql server-WITH (NOLOCK)  -code in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923689#M363639</link>
    <description>I have executed your code.it is the regular query. I think the code provided here answer  the question &lt;BR /&gt;proc sql;&lt;BR /&gt;  create table Application as&lt;BR /&gt;  select *&lt;BR /&gt;  FROM enginal.Application(read_lock_type=nolock)&lt;BR /&gt;  ;&lt;BR /&gt;quit;</description>
    <pubDate>Wed, 10 Apr 2024 01:53:17 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2024-04-10T01:53:17Z</dc:date>
    <item>
      <title>sql server-WITH (NOLOCK)  -code in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923554#M363576</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;There is a code that run in sql server&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select  *&lt;BR /&gt;FROM   Application&lt;BR /&gt;WITH  (NOLOCK) &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want to run this code in SAS (There is a library called enginal where can see the tables in sql server)&lt;/P&gt;
&lt;P&gt;What is the way to run it in sas?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Application as
select *
FROM enginal.Application
WITH (NOLOCK)
;
quit;
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Error&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;                _
                22
                76
ERROR 22-322: Syntax error, expecting one of the following: GROUP, HAVING, ORDER, WHERE.  

ERROR 76-322: Syntax error, statement will be ignored.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Apr 2024 10:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923554#M363576</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-04-09T10:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: sql server-WITH (NOLOCK)  -code in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923556#M363578</link>
      <description>&lt;P&gt;Did you try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Application as
select *
FROM enginal.Application
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 10:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923556#M363578</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-04-09T10:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: sql server-WITH (NOLOCK)  -code in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923559#M363581</link>
      <description>&lt;P&gt;WITH NOLOCK() is not SAS SQL syntax flavour. One option is to use explicit SQL passthrough as then you can just have SAS to send the SQL Server syntax as-is to the DB for execution.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  connect using enginal;
  select * from connection to enginal
    ( select * FROM Application WITH (NOLOCK) )
    ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Apr 2024 10:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923559#M363581</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-04-09T10:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: sql server-WITH (NOLOCK)  -code in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923561#M363583</link>
      <description>&lt;P&gt;Sure but you didnt add "With No LOCK" and didnt add equivalent SAS code to&amp;nbsp; "WITH NO LOCK"&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 10:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923561#M363583</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-04-09T10:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: sql server-WITH (NOLOCK)  -code in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923562#M363584</link>
      <description>&lt;P&gt;You solution is perfect.&lt;/P&gt;
&lt;P&gt;I have another question-&lt;/P&gt;
&lt;P&gt;Is there a SAS code that&amp;nbsp; do same like "With No Loc(sql server)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 10:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923562#M363584</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-04-09T10:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: sql server-WITH (NOLOCK)  -code in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923564#M363586</link>
      <description>&lt;P&gt;1) I asked did you execute "plain"?&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc sql;
create table Application as
select *
FROM enginal.Application
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You didn't answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) It's hard to add something that does no exist...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "with NOLOCK" is SQL Server specific..&lt;/P&gt;
&lt;P&gt;a)&amp;nbsp;&lt;A href="https://www.sqlshack.com/understanding-impact-clr-strict-security-configuration-setting-sql-server-2017/" target="_blank"&gt;https://www.sqlshack.com/understanding-impact-clr-strict-security-configuration-setting-sql-server-2017/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;b) &lt;A href="https://stackoverflow.com/questions/686724/what-is-with-nolock-in-sql-server" target="_blank"&gt;https://stackoverflow.com/questions/686724/what-is-with-nolock-in-sql-server&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923564#M363586</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-04-09T11:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: sql server-WITH (NOLOCK)  -code in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923682#M363638</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You solution is perfect.&lt;/P&gt;
&lt;P&gt;I have another question-&lt;/P&gt;
&lt;P&gt;Is there a SAS code that&amp;nbsp; do same like "With No Loc(sql server)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I normally look into the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p0378ek9nfsu5bn1cpsc8woi6qjf.htm" target="_self"&gt;SAS docu for the access engine&lt;/A&gt; to answer such questions. If using the docu you would find&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0ij9nmtpct9k0n1gtd0qb9xld8q.htm" target="_self"&gt;READ_LOCK_TYPE= Data Set Option&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="xisDoc-keyword"&gt;READ_LOCK_TYPE=&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0ij9nmtpct9k0n1gtd0qb9xld8q.htm#n19q04lvymqjuen1kj8k267vmozg" target="_blank"&gt;ROW&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;|&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0ij9nmtpct9k0n1gtd0qb9xld8q.htm#n0re47qkhd5gpfn16cokfhhzzdap" target="_blank"&gt;PAGE&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;|&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0ij9nmtpct9k0n1gtd0qb9xld8q.htm#p0rwy6lr1tu53mn1ss8zodggvpqd" target="_blank"&gt;TABLE&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;|&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0ij9nmtpct9k0n1gtd0qb9xld8q.htm#n0t3sowjlt3yhvn1lraiyfxzfinh" target="_blank"&gt;NOLOCK&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;|&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0ij9nmtpct9k0n1gtd0qb9xld8q.htm#n1b1di69bxi1hin1owdbfexel1ob" target="_blank"&gt;VIEW&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table Application as
  select *
  FROM enginal.Application(read_lock_type=nolock)
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Apr 2024 23:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923682#M363638</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-04-09T23:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: sql server-WITH (NOLOCK)  -code in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923689#M363639</link>
      <description>I have executed your code.it is the regular query. I think the code provided here answer  the question &lt;BR /&gt;proc sql;&lt;BR /&gt;  create table Application as&lt;BR /&gt;  select *&lt;BR /&gt;  FROM enginal.Application(read_lock_type=nolock)&lt;BR /&gt;  ;&lt;BR /&gt;quit;</description>
      <pubDate>Wed, 10 Apr 2024 01:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-WITH-NOLOCK-code-in-SAS/m-p/923689#M363639</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-04-10T01:53:17Z</dc:date>
    </item>
  </channel>
</rss>

