<?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 LOCKTABLE option  in DS2 porogram in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/LOCKTABLE-option-in-DS2-porogram/m-p/452774#M283964</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the code below. With two select statements the program seems to detect a lock conflict.&lt;/P&gt;&lt;P&gt;When I run it I get&amp;nbsp; (among others) &amp;nbsp; this message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: BASE driver, Table TESTTBL is already in use and cannot be locked.  If you opened the file with LOCKTABLE=EXCLUSIVE, try the 
       LOCKTABLE=SHARE option&lt;/PRE&gt;&lt;P&gt;Where can I put the LOCKTABLE option in the code below?&amp;nbsp;&amp;nbsp;I can't figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc ds2;
	package testpkg /overwrite=yes;
		declare package sqlstmt select1('select a from  pdsynt.testtbl') ;
		declare package sqlstmt select2('select b from  pdsynt.testtbl ');
		method testpkg();
			select1.execute();
		end;
	endpackage;
run;

data _null_;
method init();
		dcl package testpkg testpkg;
		testpkg = _NEW_  testpkg();
end;
enddata;
run;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 12:41:33 GMT</pubDate>
    <dc:creator>b1958</dc:creator>
    <dc:date>2018-04-10T12:41:33Z</dc:date>
    <item>
      <title>LOCKTABLE option  in DS2 porogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/LOCKTABLE-option-in-DS2-porogram/m-p/452774#M283964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the code below. With two select statements the program seems to detect a lock conflict.&lt;/P&gt;&lt;P&gt;When I run it I get&amp;nbsp; (among others) &amp;nbsp; this message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: BASE driver, Table TESTTBL is already in use and cannot be locked.  If you opened the file with LOCKTABLE=EXCLUSIVE, try the 
       LOCKTABLE=SHARE option&lt;/PRE&gt;&lt;P&gt;Where can I put the LOCKTABLE option in the code below?&amp;nbsp;&amp;nbsp;I can't figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc ds2;
	package testpkg /overwrite=yes;
		declare package sqlstmt select1('select a from  pdsynt.testtbl') ;
		declare package sqlstmt select2('select b from  pdsynt.testtbl ');
		method testpkg();
			select1.execute();
		end;
	endpackage;
run;

data _null_;
method init();
		dcl package testpkg testpkg;
		testpkg = _NEW_  testpkg();
end;
enddata;
run;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 12:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/LOCKTABLE-option-in-DS2-porogram/m-p/452774#M283964</guid>
      <dc:creator>b1958</dc:creator>
      <dc:date>2018-04-10T12:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: LOCKTABLE option  in DS2 porogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/LOCKTABLE-option-in-DS2-porogram/m-p/452810#M283965</link>
      <description>&lt;P&gt;Did you check this:&amp;nbsp;&lt;A href="http://support.sas.com/kb/59/182.html" target="_blank"&gt;http://support.sas.com/kb/59/182.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/LOCKTABLE-option-in-DS2-porogram/m-p/452810#M283965</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-04-10T13:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: LOCKTABLE option  in DS2 porogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/LOCKTABLE-option-in-DS2-porogram/m-p/452907#M283966</link>
      <description>&lt;P&gt;Have a loo here, looks similar&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Dynamic-hash-column-definition-using-existing-dataset-in-PROC/m-p/258131/highlight/true#M57329" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Dynamic-hash-column-definition-using-existing-dataset-in-PROC/m-p/258131/highlight/true#M57329&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/LOCKTABLE-option-in-DS2-porogram/m-p/452907#M283966</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-04-10T17:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: LOCKTABLE option  in DS2 porogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/LOCKTABLE-option-in-DS2-porogram/m-p/453082#M283967</link>
      <description>&lt;P&gt;Thanks a lot , guys&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 06:47:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/LOCKTABLE-option-in-DS2-porogram/m-p/453082#M283967</guid>
      <dc:creator>b1958</dc:creator>
      <dc:date>2018-04-11T06:47:30Z</dc:date>
    </item>
  </channel>
</rss>

