<?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: Read log file while it is still being written in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-log-file-while-it-is-still-being-written/m-p/53257#M11259</link>
    <description>I have the very same issues between 9.1.3 amd 9.2... Did you get any real helpfull replies yet?</description>
    <pubDate>Fri, 23 Jul 2010 18:10:47 GMT</pubDate>
    <dc:creator>Bernie_iMS</dc:creator>
    <dc:date>2010-07-23T18:10:47Z</dc:date>
    <item>
      <title>Read log file while it is still being written</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-log-file-while-it-is-still-being-written/m-p/53255#M11257</link>
      <description>When I am reading sas log(using program below) file created by some sas program I am getting error message - "ERROR: File is in use," when executing program mentioned below using sas9.2, whereas if I execute below mentioned program using sas9.1.3 I am not getting any error. log file is created using sas9.2. in both cases sas program creating log file was executing..&lt;BR /&gt;
Can somebody let me know what is happening.&lt;BR /&gt;
&lt;BR /&gt;
data tmp;&lt;BR /&gt;
do i=1 to 100;&lt;BR /&gt;
x="log file path";&lt;BR /&gt;
output;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
set tmp;&lt;BR /&gt;
infile tmplog filevar=x filename=check2 end=done2 length=_lenvar truncover;&lt;BR /&gt;
input _logrec_ $varying300. _lenvar;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 20 Jul 2010 16:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-log-file-while-it-is-still-being-written/m-p/53255#M11257</guid>
      <dc:creator>VAMA</dc:creator>
      <dc:date>2010-07-20T16:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read log file while it is still being written</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-log-file-while-it-is-still-being-written/m-p/53256#M11258</link>
      <description>Lots of free and helpful Internet resources (hosted DOC, supplemental technical and conference topic-related papers) at the SAS support website &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  -- consider using the Google search mentioned below.&lt;BR /&gt;
&lt;BR /&gt;
Also, if necessary, suggest you most your SAS log output with the diagnostic messages (and code) leading up to the error, particular about the INFILE and that file which you must have allocated elsewhere?&lt;BR /&gt;
&lt;BR /&gt;
Also, for future reference, helpful info about your SAS version, OS platform, whether the program has or has not worked previously (is it new function), whether SAS is installed locally on your machine or on a remote server.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Recommended Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
+"file in use" site:sas.com</description>
      <pubDate>Tue, 20 Jul 2010 17:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-log-file-while-it-is-still-being-written/m-p/53256#M11258</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-20T17:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read log file while it is still being written</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-log-file-while-it-is-still-being-written/m-p/53257#M11259</link>
      <description>I have the very same issues between 9.1.3 amd 9.2... Did you get any real helpfull replies yet?</description>
      <pubDate>Fri, 23 Jul 2010 18:10:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-log-file-while-it-is-still-being-written/m-p/53257#M11259</guid>
      <dc:creator>Bernie_iMS</dc:creator>
      <dc:date>2010-07-23T18:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Read log file while it is still being written</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-log-file-while-it-is-still-being-written/m-p/53258#M11260</link>
      <description>Problem solved by using Options FILELOCKS= ('/xxxxx/xxx' NONE);. Behaviour in 9.2 has changed as it also locks External files.</description>
      <pubDate>Tue, 27 Jul 2010 16:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-log-file-while-it-is-still-being-written/m-p/53258#M11260</guid>
      <dc:creator>Bernie_iMS</dc:creator>
      <dc:date>2010-07-27T16:41:05Z</dc:date>
    </item>
  </channel>
</rss>

