<?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: Rerun and update the SAS dataset when another user has it open in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714074#M220394</link>
    <description>analyst</description>
    <pubDate>Mon, 25 Jan 2021 21:03:14 GMT</pubDate>
    <dc:creator>Santoshrk</dc:creator>
    <dc:date>2021-01-25T21:03:14Z</dc:date>
    <item>
      <title>Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714043#M220379</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to rerun and update the dataset 'eg' when another user has it open.&lt;BR /&gt;To achieve this task, I&amp;nbsp;have created eg.SAS7BDAT dataset in the library called 'test' and set the password to the dataset with the proc datasets option as below.&lt;BR /&gt;But, when I'm trying to refresh the dataset (when another user has it open), it is throwing lock is not available message as below.&amp;nbsp;&lt;BR /&gt;ERROR: A lock is not available for TEST.EG.DATA.&lt;BR /&gt;&lt;BR /&gt;is there any way to overcome this issue? Any help is much appreciated. (Sample code that I'm trying is below)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;proc datasets memtype = data library = test nolist;&lt;BR /&gt;modify eg (write = dummy/ alter = dummy/); *Removes the password dummy;&lt;BR /&gt;run; quit;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;data test.eg; set final; run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc datasets memtype = data library = test pw = vrtx nolist;&lt;BR /&gt;modify eg (write = dummy alter = dummy); *Set the password dummy;&lt;BR /&gt;run; quit;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 20:06:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714043#M220379</guid>
      <dc:creator>Santoshrk</dc:creator>
      <dc:date>2021-01-25T20:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714052#M220385</link>
      <description>&lt;P&gt;What OS do your SAS sessions run on?&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;has a backdoor solution for Unix SAS but not for other OSs. SAS has a product for this type of scenario - SAS/SHARE but I don't imagine you would want to get another SAS product just for this&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 20:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714052#M220385</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-01-25T20:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714056#M220386</link>
      <description>I'm using Windows SAS. Need solution on this same OS. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 25 Jan 2021 20:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714056#M220386</guid>
      <dc:creator>Santoshrk</dc:creator>
      <dc:date>2021-01-25T20:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714060#M220388</link>
      <description>&lt;P&gt;Mind that the backdoor/workaround mentioned by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;needs a complete rewrite of the dataset. It is not able to let you make changes on a dataset. You have to remove and then recreate the dataset. And, as mentioned, it only works on UNIX systems.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 20:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714060#M220388</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-25T20:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714061#M220389</link>
      <description>&lt;P&gt;You need to get all users to close the dataset. There is no workaround.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 20:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714061#M220389</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-25T20:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714065#M220390</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; Thanks for sharing this info, It's interesting to know.&lt;BR /&gt;At my workplace, we have only Windows setup.&lt;BR /&gt;Is it completely impossible on the Windows evnvironment? Because we have multiple teams at different locations. So, we have been requesting the teams to close the datasets several times a day before refreshing them. I'm okay to recreate the dataset and do some workaround if there is a way in Windows Environment.</description>
      <pubDate>Mon, 25 Jan 2021 20:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714065#M220390</guid>
      <dc:creator>Santoshrk</dc:creator>
      <dc:date>2021-01-25T20:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714073#M220393</link>
      <description>Are you asking as an analyst or administrator?</description>
      <pubDate>Mon, 25 Jan 2021 21:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714073#M220393</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-25T21:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714074#M220394</link>
      <description>analyst</description>
      <pubDate>Mon, 25 Jan 2021 21:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714074#M220394</guid>
      <dc:creator>Santoshrk</dc:creator>
      <dc:date>2021-01-25T21:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714077#M220395</link>
      <description>&lt;P&gt;Windows does not allow (because of its simpler filesystem architecture) to remove a directory entry for an open file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you can do is set up a service window during which client accesses are terminated. Then you can update your datasets without locks getting in your way.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 21:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714077#M220395</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-25T21:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714083#M220399</link>
      <description>x attrib -r "&amp;amp;filepath.\t-eg.rtf" ; *Removes Read Only attribute;&lt;BR /&gt;%dorpt; *Proc Report macro;&lt;BR /&gt;x attrib +r "&amp;amp;filepath.\t-eg.rtf" ; *Enables Read Only attribute;&lt;BR /&gt;&lt;BR /&gt;With the help of X command, I'm able to update the files(.rtf) in Windows environment when they are open as ReadOnly mode at another user.</description>
      <pubDate>Mon, 25 Jan 2021 21:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714083#M220399</guid>
      <dc:creator>Santoshrk</dc:creator>
      <dc:date>2021-01-25T21:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714088#M220401</link>
      <description>&lt;P&gt;I take it that the software used to display the RTF file closes it after reading it (as it won't be able to update it anyway). That is not what SAS does when a dataset is open in a viewtable window. That keeps the dataset file opened for as long as the dataset is viewed.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 21:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714088#M220401</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-25T21:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714131#M220419</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; Is it completely impossible on the Windows evnvironment?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Windows has no abstraction layer between a file and the OS.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Unix uses pointers called&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/Inode" target="_self"&gt;inodes&lt;/A&gt;&amp;nbsp;that allow you to, for a simple example, rename a file even if it is being updated or otherwise 'locked'.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 23:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714131#M220419</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-01-25T23:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714133#M220420</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/271268"&gt;@Santoshrk&lt;/a&gt;&amp;nbsp; - If you can ensure that the SAS dataset is only locked for short periods then the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=hostwin&amp;amp;docsetTarget=n0fh4oaq31gvqkn1hlh75lvv9396.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FILELOCKWAIT&lt;/A&gt;&amp;nbsp;option can be useful. Perhaps this would work if users created a copy of the dataset or referenced a view of it that might be workable?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 00:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714133#M220420</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-01-26T00:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714243#M220484</link>
      <description>&lt;P&gt;Can we add any program to send an automatic notification (through the SAS system) to another user to "close" the dataset, when we are trying to refresh them from our end?&lt;BR /&gt;Just curious to know about this possibility, instead of sending an email to the entire team and asking to close the dataset, if we can push some message to the target user/users, that would solve the issue more efficient way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 13:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714243#M220484</guid>
      <dc:creator>Santoshrk</dc:creator>
      <dc:date>2021-01-26T13:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714248#M220487</link>
      <description>&lt;P&gt;This would involve use of external functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On UNIX, I'd run the fuser command on the dataset file, parse out the process numbers, and use ps to get the system username for each process (Windows hopefully provides equivalent commands) . From that you need to look up the user's email (or other contact data) from any means available, and then send the notifications.&lt;/P&gt;
&lt;P&gt;Surely doable, but not with 10 lines of code.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 13:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714248#M220487</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-26T13:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rerun and update the SAS dataset when another user has it open</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714369#M220541</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/271268"&gt;@Santoshrk&lt;/a&gt;&amp;nbsp;- Don't know if this is doable under Windows. You could ask that question on a Windows forum because SAS doesn't really come into it. Another brute force option would be close all SAS workspace sessions say at a particular off-peak time, say early morning, and run your dataset update then. This would only work if one daily update is all you need and other SAS users don't normally run jobs at that time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 19:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rerun-and-update-the-SAS-dataset-when-another-user-has-it-open/m-p/714369#M220541</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-01-26T19:03:32Z</dc:date>
    </item>
  </channel>
</rss>

