<?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 Way of catch dataset is opened or not. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304902#M64968</link>
    <description>&lt;P&gt;Is there any way that I can determine whether the dataset is open or not?&lt;/P&gt;&lt;P&gt;For example, If I open the dataset "x" in the work library,which means there is a window which title bar is "VIEWTABLE: work.X".&lt;BR /&gt;In this situation,I exist below code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.x;
yy = 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There's a ERROR log saying "member-level control" etc., you know.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To avoid this, I'm looking for a way to grasp how this data set is open before casting the dataset(work.x) to DATA step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know "open" function,which is for open dataset.This time I'm looking "opened" or not.&lt;/P&gt;&lt;P&gt;I asked “Google” but it seems no answer.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5306iF7CDA3BDEBF13EF4/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas_dataset_opend.JPG" title="sas_dataset_opend.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;</description>
    <pubDate>Sun, 16 Oct 2016 03:43:00 GMT</pubDate>
    <dc:creator>t_ar_taat</dc:creator>
    <dc:date>2016-10-16T03:43:00Z</dc:date>
    <item>
      <title>Way of catch dataset is opened or not.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304902#M64968</link>
      <description>&lt;P&gt;Is there any way that I can determine whether the dataset is open or not?&lt;/P&gt;&lt;P&gt;For example, If I open the dataset "x" in the work library,which means there is a window which title bar is "VIEWTABLE: work.X".&lt;BR /&gt;In this situation,I exist below code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.x;
yy = 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There's a ERROR log saying "member-level control" etc., you know.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To avoid this, I'm looking for a way to grasp how this data set is open before casting the dataset(work.x) to DATA step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know "open" function,which is for open dataset.This time I'm looking "opened" or not.&lt;/P&gt;&lt;P&gt;I asked “Google” but it seems no answer.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5306iF7CDA3BDEBF13EF4/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas_dataset_opend.JPG" title="sas_dataset_opend.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 03:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304902#M64968</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2016-10-16T03:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Way of catch dataset is opened or not.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304903#M64969</link>
      <description>&lt;P&gt;The first paper in your google search is appplicable isn't it?&lt;/P&gt;
&lt;P&gt;Try to open/lock the file and you'all get an error code if file is already opened.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The FOPEN function()&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 04:56:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304903#M64969</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-16T04:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Way of catch dataset is opened or not.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304907#M64972</link>
      <description>&lt;P&gt;In case you've started looking into this because you have some sort of a control/log table where multiple processes insert or update in parallel (so only short lock of the table per process) then have also a look into option FileLockWait&amp;nbsp;as this will make the locking issue "go away" for such use cases.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 06:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304907#M64972</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-10-16T06:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Way of catch dataset is opened or not.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304911#M64976</link>
      <description>&lt;P&gt;Reeza,Thank &amp;nbsp;you for your kindness every time.&lt;/P&gt;&lt;P&gt;Oops,actually &amp;nbsp;if "open" function returns error,it means the dataset is opened.Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 07:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304911#M64976</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2016-10-16T07:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Way of catch dataset is opened or not.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304912#M64977</link>
      <description>&lt;P&gt;Thank you,Patrick.&lt;BR /&gt;I haven't seen "FILELOCKWAIT" System Option,so I'll check it.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 07:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-dataset-is-opened-or-not/m-p/304912#M64977</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2016-10-16T07:38:07Z</dc:date>
    </item>
  </channel>
</rss>

