<?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: gracefully handling locked sequential files when reading in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211449#M52232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the filelockwait option applies to SAS files only.&amp;nbsp; These are sequential ones.&amp;nbsp; Good choice for SAS files, though!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 11:51:35 GMT</pubDate>
    <dc:creator>BenConner</dc:creator>
    <dc:date>2015-06-23T11:51:35Z</dc:date>
    <item>
      <title>gracefully handling locked sequential files when reading</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211445#M52228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I seem to do a fair amount of processing multiple log files in a folder, and typically use the infile ... filevar= approach using a DO loop.&amp;nbsp; Once in a while one of the files being read is opened in exclusive mode by another application, which throws an error and causes the data step not to finish.&lt;/P&gt;&lt;P&gt;Is there a graceful way to continue processing the rest of the files while skipping the locked one?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211445#M52228</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2015-06-22T17:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: gracefully handling locked sequential files when reading</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211446#M52229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FOPEN() might be a way:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p1fr3ny0ek8sr9n1pujj2om3bia7.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p1fr3ny0ek8sr9n1pujj2om3bia7.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 06:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211446#M52229</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-06-23T06:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: gracefully handling locked sequential files when reading</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211447#M52230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;System option "FILELOCKWAIT" could be of interest to you.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/67464/HTML/default/viewer.htm#p1006eif9dw75bn1c7f27sab5j6h.htm" title="http://support.sas.com/documentation/cdl/en/hostunx/67464/HTML/default/viewer.htm#p1006eif9dw75bn1c7f27sab5j6h.htm"&gt;SAS(R) 9.4 Companion for UNIX Environments, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/67279/HTML/default/viewer.htm#n0fh4oaq31gvqkn1hlh75lvv9396.htm" title="http://support.sas.com/documentation/cdl/en/hostwin/67279/HTML/default/viewer.htm#n0fh4oaq31gvqkn1hlh75lvv9396.htm"&gt;SAS(R) 9.4 Companion for Windows, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 08:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211447#M52230</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-06-23T08:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: gracefully handling locked sequential files when reading</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211448#M52231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do not process the logfiles that active written to.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;You are not having a technical problem you are having a logical one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;At the moment you are reading writing is not allowed and vice versa. That is a generic prerequisition locking is a solution to synchronize actions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211448#M52231</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-06-23T10:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: gracefully handling locked sequential files when reading</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211449#M52232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the filelockwait option applies to SAS files only.&amp;nbsp; These are sequential ones.&amp;nbsp; Good choice for SAS files, though!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 11:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211449#M52232</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2015-06-23T11:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: gracefully handling locked sequential files when reading</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211450#M52233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That looks like it would work, with a filename()/fopen() combination.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 11:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/gracefully-handling-locked-sequential-files-when-reading/m-p/211450#M52233</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2015-06-23T11:55:05Z</dc:date>
    </item>
  </channel>
</rss>

