Since we deleted the lockfile it hasn&#39;t repeated the problem, so can&#39;t give the exact error message yet.<br><br>On Tue, Feb 2, 2010 at 6:37 AM, John Esak <span dir="ltr">&lt;<a href="mailto:john@valar.com">john@valar.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
That&#39;s why I was looking for the exact way you launch this stuff.  Maybe you<br>
put it in the last note... I&#39;m not sure.  <br></blockquote>
<br>I did, but here is a slightly expanded version.<br><br>It is almost always called via a script entry like this:<br>ARGPM=&quot;file=none;processing=none;qualifier=hh;script=importship;user=$LOGNAME;note=none;status=COMPLETED&quot;<br>
/appl/fp/rreport log_operations -fp log_it -sr 1 -r $ARGPM -h &quot;Logging&quot;<br><br>or from a SYSTEM call in processing that looks pretty much the same<br>m=&quot;file=invhead2;processing=postFedex;&quot;<br>m=m{&quot;qualifier=&quot;{@QU{&quot;;script=none;user=&quot;{@ID{&quot;;&quot;<br>
m=m{&quot;note=none;status=STARTED&quot;<br>system &quot;/appl/fp/rreport log_operations -fp log_it -sr 1 -r &#39;&quot;{m{&quot;&#39;&quot;<br><br>FYI, there is no automatic processing at all.<br><br><div class="gmail_quote">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Incidentally, how do you do a lookup to a &quot;random&quot; record to keep it from<br>
&quot;hogging&quot; the file.  Is it possible you are getting the record you are<br>
standing on... Which actually is possible to get in &quot;write&quot; mode because<br>
filePro knows you are the user doing the lookup.  This might be causing the<br>
hassle.  I&#39;m curious if you actually use RAND or what?  The way I normally<br>
do what I think you&#39;re doing is do a lookup free, write that record... Grab<br>
the record number, then do a lookup - to that record number.  When the<br>
process is done, delete that record.  It has always been the cleanest way<br>
for me.<br></blockquote><div><br>I shouldn&#39;t ever get the record I&#39;m standing in (#1).  Like I said, this has run perfecting for years so it&#39;s surprising it bombs out now; I believe the problem is environmental.  Given that deleting the lockfile appears to have alleviated the problem, I&#39;m in fact sure of it.  Regardless, here&#39;s the code.  It&#39;s one of my first filePro programs, actually.<br>
<br>:&#39;##############################################################:&#39;log_it, output only processing for log_operations.:<br>:&#39;Tyler Style:&#39;10/05/05:<br>:&#39;Generic utility for creating a log file for an operation.:&#39;:<br>
:&#39;##############################################################::<br>:&#39;:&#39;:<br>:&#39;##############################################################:&#39;VARIABLES - START:<br>:&#39;@PM contents; current field name; current field value:ba=&quot;&quot;        ; bb(32,*)          ; bc(75,*):<br>
::&#39;---temp-------------------------------------------------------:<br>::i(6,.0); j(6,.0); bd(32,*); d(8,mdy/); t(8,time):<br>:&#39;VARIABLES - END:&#39;##############################################################:<br>
:&#39;:&#39;:<br>:&#39;##############################################################:&#39;REPORT - START:<br>::debug on:<br>:@RN eq &quot; 1&quot;:i=MOD((RAND(&quot;-1&quot;)),&quot;179&quot;)+&quot;1&quot;; d=@TD-i; t=@TM+i:<br>
:@RN eq &quot; 1&quot;             &#39;&#39;&#39;move off of 1st record to random record to prevent file locks:lookup -  k=(d&amp;t)   i=C -ng:<br>:@PM eq &quot;&quot;:gosub askit   &#39;get operation details from user:<br>
:@PM ne &quot;&quot;:gosub getit   &#39;get operation details from passed string (@PM):<br>rend:::<br>::end &#39;report:<br>:&#39;REP0RT - END:&#39;##############################################################:<br>:&#39;:&#39;:<br>
askit:&#39;==============================================================:&#39;Get operations log details from user:<br>:&#39; IN n/a::<br>:&#39;OUT n/a::<br>::system &quot;/appl/fp/rclerk log_operations -lx -m&quot;&lt;@qu&lt;&quot;-n -s1 -xe -xa -r CALLED&quot;:<br>
raskit:::<br>::return &#39;askit:<br>getit:&#39;==============================================================:&#39;Get operations log details from @PM:<br>:&#39; IN n/a::<br>:&#39;OUT n/a::<br>::ba=@PM; i=INSTR(ba,&quot;;&quot;):<br>
::lookup log = log_operations  r=free  -e:<br>::log(5)=@TD; log(6)=@TM:<br>loop01s::&#39;---iterate thru fields &amp; values in string:<br>:i le &quot;0&quot; and ba eq &quot;&quot;:goto loop01e:<br>:i le &quot;0&quot;:bb=ba; ba=&quot;&quot;:<br>
:i gt &quot;0&quot;       &#39;seperate out nam/value pair:bb=mid(ba,&quot;1&quot;,i-&quot;1&quot;); ba=mid(ba,i+&quot;1&quot;,DLEN(ba)):<br>::j=INSTR(bb,&quot;=&quot;):<br>:j le &quot;0&quot;:goto loop01n:<br>::bc=MID(bb,j+&quot;1&quot;,DLEN(bb)); bd=MID(bb,&quot;1&quot;,j-&quot;1&quot;); bb=bd:<br>
:@PZ eq &quot;DEBUG&quot;:show &quot;@&quot;{bb&lt;bc:<br>:bb eq &quot;&quot; or bc eq &quot;&quot;:goto loop01n:<br>:bb eq &quot;file&quot;:log(1)=&quot;&quot;{bc{&quot;&quot;:<br>:bb eq &quot;processing&quot;:log(2)=&quot;&quot;{bc{&quot;&quot;:<br>
:bb eq &quot;qualifier&quot;:log(3)=&quot;&quot;{bc{&quot;&quot;:<br>:bb eq &quot;script&quot;:log(4)=&quot;&quot;{bc{&quot;&quot;:<br>:bb eq &quot;user&quot;:log(7)=&quot;&quot;{bc{&quot;&quot;:<br>:bb eq &quot;note&quot;:log(8)=&quot;&quot;{bc{&quot;&quot;:<br>
:bb eq &quot;status&quot;:log(9)=&quot;&quot;{bc{&quot;&quot;:<br>loop01n::i=INSTR(ba,&quot;;&quot;); goto loop01s:<br>loop01e:::<br>rgetit:::<br>::return &#39;getit:<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Also, let me re-trace back to the previous paragraph . You mention having<br>
the file open with report on one screen and then clerk locks on another. The<br>
report on the first screen does have the -u on the command line, right?<br>
Otherwise, the clerk should rightfully be locked out.<br></blockquote><div><br>No, there is no -u on the command line.  I should be able to at least start up rclerk using the file and I can&#39;t, I get the message that output processing is running and kicks me out immediately back to the command line.  I can access other files while reports are running (tho obviously not update records), so I should be able to at least run rclerk.<br>
 </div>Tyler<br></div>