<?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 how to achieve multi processing on a sas dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-achieve-multi-processing-on-a-sas-dataset/m-p/855659#M338140</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have below code. where i am performing append and insert on a dataset cls. the program ends with error table damage. Could any one advise how to achieve multiple operation on a common dataset at a sametime with multiple users/jobs. Thanks in advance!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;code:&lt;/P&gt;
&lt;P&gt;user1 submit :&lt;/P&gt;
&lt;P&gt;libname abc&amp;nbsp; "c:\temp" ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data abc.cls;&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;options mprint mlogic symbolgen;&lt;BR /&gt;%macro loop;&lt;BR /&gt;%do i=1 %to 1000;&lt;BR /&gt;proc append base=abc.cls data=sashelp.class force;&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%loop;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;user2 submit:&lt;/P&gt;
&lt;P&gt;libname abc2 "c:\temp";&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro loop;&lt;BR /&gt;%do i=1 %to 1000;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;insert into abc2.cls set name="subbu",sex='M',age=29 ,weight=. , height=.;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%loop;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 22:03:23 GMT</pubDate>
    <dc:creator>subhani4</dc:creator>
    <dc:date>2023-01-25T22:03:23Z</dc:date>
    <item>
      <title>how to achieve multi processing on a sas dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-achieve-multi-processing-on-a-sas-dataset/m-p/855659#M338140</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have below code. where i am performing append and insert on a dataset cls. the program ends with error table damage. Could any one advise how to achieve multiple operation on a common dataset at a sametime with multiple users/jobs. Thanks in advance!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;code:&lt;/P&gt;
&lt;P&gt;user1 submit :&lt;/P&gt;
&lt;P&gt;libname abc&amp;nbsp; "c:\temp" ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data abc.cls;&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;options mprint mlogic symbolgen;&lt;BR /&gt;%macro loop;&lt;BR /&gt;%do i=1 %to 1000;&lt;BR /&gt;proc append base=abc.cls data=sashelp.class force;&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%loop;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;user2 submit:&lt;/P&gt;
&lt;P&gt;libname abc2 "c:\temp";&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro loop;&lt;BR /&gt;%do i=1 %to 1000;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;insert into abc2.cls set name="subbu",sex='M',age=29 ,weight=. , height=.;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%loop;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 22:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-achieve-multi-processing-on-a-sas-dataset/m-p/855659#M338140</guid>
      <dc:creator>subhani4</dc:creator>
      <dc:date>2023-01-25T22:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to achieve multi processing on a sas dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-achieve-multi-processing-on-a-sas-dataset/m-p/855671#M338142</link>
      <description>&lt;P&gt;SAS datasets are not designed to be updated simultaneously by different users using the default SAS library engine. You could try the the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostwin/n0fh4oaq31gvqkn1hlh75lvv9396.htm" target="_blank" rel="noopener"&gt;FILELOCKWAIT&lt;/A&gt; option on your LIBNAME statement to see if that helps. As long as each update is quick then you may find this option works reliably. If not then a couple of other options are to use SAS/SHARE (available as a separate product) or to load the dataset into a relational database which will handle the multi-user updating automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 01:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-achieve-multi-processing-on-a-sas-dataset/m-p/855671#M338142</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-01-26T01:29:39Z</dc:date>
    </item>
  </channel>
</rss>

