<?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: querying to see if a SAS dataset has member level locking available in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485284#M126056</link>
    <description>&lt;P&gt;Wow.&amp;nbsp; That's impressive.&amp;nbsp; Thanks for posting this, Ron!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
    <pubDate>Wed, 08 Aug 2018 20:37:00 GMT</pubDate>
    <dc:creator>BenConner</dc:creator>
    <dc:date>2018-08-08T20:37:00Z</dc:date>
    <item>
      <title>querying to see if a SAS dataset has member level locking available</title>
      <link>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485211#M126034</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We're updating a bunch of master files and at times a user will have one open.&amp;nbsp; The process fails as it replaces the files and can't get member level locking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked through the functions available but none stood out to detect this condition ahead of time.&amp;nbsp; Anyone have any suggestions?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Windows 2012 server environment in TS1M5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 16:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485211#M126034</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2018-08-08T16:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: querying to see if a SAS dataset has member level locking available</title>
      <link>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485277#M126052</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO RTRACERDx(PRODFILE,RTRACEFL,testing = 1);
********************************************************************;
* Allocate the RTRACE flat file.                                   *;
********************************************************************;
filename rtracefl "&amp;amp;RTRACEFL";

********************************************************************;
* Determine if the RTRACE flat file is in use.                     *;
********************************************************************;
data _null_;

inuse = fopen('rtracefl');

call symput('INUSE',inuse);

if inuse = 0 then do;

   put '*** Attention: the file below was in use ***';
   put "&amp;amp;RTRACEFL";
   put _all_;
   put '*** Attention: the file above was in use ***';

end;

run;

*...;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi Ben&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above is from Michael Raithel's paper on the LogParse Macro.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Measure_SAS_Application_Performance_with_LogParse_Macro" target="_self"&gt;Measure_SAS_Application_Performance_with_LogParse_Macro&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote a follow-up&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Modifying_The_LogParse_PassInfo_Macro" target="_self"&gt;Modifying_The_LogParse_PassInfo_Macro&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hth&lt;/P&gt;
&lt;P&gt;Ron Fehd&amp;nbsp; macro maven&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 20:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485277#M126052</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2018-08-08T20:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: querying to see if a SAS dataset has member level locking available</title>
      <link>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485283#M126055</link>
      <description>&lt;P&gt;... so you are probably looking for the open function?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 20:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485283#M126055</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2018-08-08T20:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: querying to see if a SAS dataset has member level locking available</title>
      <link>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485284#M126056</link>
      <description>&lt;P&gt;Wow.&amp;nbsp; That's impressive.&amp;nbsp; Thanks for posting this, Ron!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 20:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485284#M126056</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2018-08-08T20:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: querying to see if a SAS dataset has member level locking available</title>
      <link>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485286#M126058</link>
      <description>&lt;P&gt;I'd tried opening a SAS dataset but it opened fine while I was reading that file in another session.&amp;nbsp; I gather this will work with the full filename, etc. handed to it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can then wait for blocks of time until it is released.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 20:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/querying-to-see-if-a-SAS-dataset-has-member-level-locking/m-p/485286#M126058</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2018-08-08T20:39:40Z</dc:date>
    </item>
  </channel>
</rss>

