<div>  Sorry John, I was just uncertain of the exact flags.</div>
<div>  Also, I was confused by the one blank record idea because I was also working</div>
<div>  on some import/export stuff....that&#39;s another story.</div>
<div> </div>
<div>  Anyways, here is where I&#39;m at.</div>
<div>  I have everything I want setup so far...except one thing I&#39;m not certain of.</div>
<div>  Here is my input processing on the &quot;new&quot; file I created.</div>
<div>  Now, I&#39;m not sure how to get the browse window keys to work.</div>
<div>  You can see from my processing that I want to be able to hit &quot;V&quot; to view</div>
<div>  the screen 1v in this main file.  I also want to be able to hit &quot;N&quot; for notes and</div>
<div>  &quot;P&quot; for payments when at this browse window.</div>
<div>  I have tried using the @bk command but it doesn&#39;t do anything.</div>
<div>  Keep in mind, I ONLY want them to be able to view things, NOT change anything.</div>
<div>  What am I missing here?</div>
<div>  Also, when hitting &quot;X&quot; from this browse window, I want it to exit completely, </div>
<div>  not go to the filePro IUA menu.</div>
<div>  </div>
<div>  Input processing table:</div>
<div> </div>
<div> 1</div>
<div>  @menu  If:</div>
<div>           Then: dim myiua(3)</div>
<div> 2</div>
<div>               If:</div>
<div>           Then: myiua[&quot;1&quot;]=&quot;Choose Search Option&quot;</div>
<div> 3            If:</div>
<div>           Then: myiua[&quot;2&quot;]=&quot;A:Search by Acct Num&quot;</div>
<div> 4            If:</div>
<div>           Then: myiua[&quot;3&quot;]=&quot;B:Search by Last Name&quot;</div>
<div> 5</div>
<div>rptmnu     If:</div>
<div>           Then: cls(&quot;22&quot;)</div>
<div> 6            If:</div>
<div>           Then: menu myiua dosrch1, dosrch2</div>
<div> 7            If:</div>
<div>           Then: exit</div>
<div> 8            If:</div>
<div>dosrch1Then: lookup act = mainfile k=3   i=A  -nx b=&quot;(brw=12 xkey=x pop=1v prc=actn fill=asc,top) [ Acct Num       </div>
<div> 9            If:</div>
<div>            Then:        Beg Bal     Payments    Curr Bal] *3            *7                                     *20        *21          *22 &quot;</div>
<div> </div>
<div>10           If:</div>
<div>           Then: end</div>
<div> </div>
<div> 11          If:  @bk=&quot;N&quot;</div>
<div>           Then: ...does a browse lookup to the notes file, matching on Acct #</div>
<div> </div>
<div> 13         If:</div>
<div>           Then: end</div>
<div>14          If:</div>
<div>dosrch2Then: ....does the same browse lookup as in line 8 &amp; 9 above, only using a different index (for last name) and uses prc=name</div>
<div> </div>
<div> 17         If:</div>
<div>actn     Then: show \r V \r to View \r N \r for Notes \r P \r for Payments; end</div>
<div>18          If:</div>
<div>name   Then:  show \r V\r to View \r N \r for Notes \r P \r for Payments; end</div>
<div> </div>
<div> </div>
<div>   What am I missing here???</div>
<div>   thanks</div>
<div> </div>
<div>   Scott</div>
<div> </div>
<div> <br><br></div>
<div class="gmail_quote">On Fri, Sep 11, 2009 at 2:13 PM, John Esak <span dir="ltr">&lt;<a href="mailto:john@valar.com">john@valar.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I&#39;m not sure why you want to leave one blank record in the files you want to<br>clear.  The command to clear ALL records on Unix is:<br>
<br>ddir filename -k   (kill the main file only (the unqualified file))<br><br>ddir filename -ka  (kill all qualifiers as well)<br><br>ddir filename -k -m qualifier  (kill a particular qualifier)<br><br>For Windows substitute dprodir for ddir.<br>
<br>*Kill means empty the key/data and rebuild the indexes to fresh ones.<br><br>But why could you not have looked this up in the manual? Or in the help for<br>this program in the on-line Help.  F10 in Define Menus for example.<br>
<font color="#888888"><br>John<br></font>
<div>
<div></div>
<div class="h5"><br><br><br>&gt; -----Original Message-----<br>&gt; From: filepro-list-bounces+john=<a href="http://valar.com/" target="_blank">valar.com</a>@<a href="http://lists.celestial.com/" target="_blank">lists.celestial.com</a><br>
&gt; [mailto:<a href="mailto:filepro-list-bounces%2Bjohn">filepro-list-bounces+john</a>=<a href="http://valar.com/" target="_blank">valar.com</a>@<a href="http://lists.celestial.co/" target="_blank">lists.celestial.co</a><br>
m] On Behalf Of Boaz Bezborodko<br>&gt; Sent: Friday, September 11, 2009 10:53 AM<br>&gt; To: <a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>; <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a><br>
&gt; Subject: Re: limiting browse based on login?<br>&gt;<br>&gt; &gt;<br>&gt; &gt; Date: Fri, 11 Sep 2009 10:28:14 -0400<br>&gt; &gt; From: &quot;<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&quot; &lt;<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&gt;<br>
&gt; &gt; Subject: Re: limiting browse based on login?<br>&gt; &gt; To: Ken Cole &lt;<a href="mailto:ken.m.cole@gmail.com">ken.m.cole@gmail.com</a>&gt;,        filePro Mailing List<br>&gt; &gt;     &lt;<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>&gt;<br>
&gt; &gt; Message-ID:<br>&gt; &gt;     &lt;<a href="mailto:445ca8160909110728r2015be5cr7e1fbe2285d37347@mail.gmail.com">445ca8160909110728r2015be5cr7e1fbe2285d37347@mail.gmail.com</a>&gt;<br>&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>&gt; &gt;       Okay, well I decided to go in another direction on<br>&gt; this due to time<br>&gt; &gt; constraints.<br>&gt; &gt;       What I did is create a new file that mirrors the<br>&gt; &#39;main&#39; file NRdebtor<br>
&gt; &gt;       I copied over JUST the records for the client that<br>&gt; wants access so<br>&gt; &gt; just their<br>&gt; &gt;       records are in this file - they will ONLY be allowed<br>&gt; to browse their<br>&gt; &gt; data,<br>
&gt; &gt;       nothing else.<br>&gt; &gt;<br>&gt; &gt;       So I created a simple screen that will show just the<br>&gt; pertinent info,<br>&gt; &gt; etc.<br>&gt; &gt;<br>&gt; &gt;       Now, what I want to do is copy over just their<br>
&gt; records in a nightly<br>&gt; &gt; cron job<br>&gt; &gt;<br>&gt; &gt;       So, to do this, what is the command to delete all the<br>&gt; records (except<br>&gt; &gt; 1 blank)<br>&gt; &gt;       from this new &quot;mirror&quot; file that has only this<br>
&gt; clients data in it?<br>&gt; &gt;       I know how to get the records copied from the main<br>&gt; file, but am unsure<br>&gt; &gt; how to<br>&gt; &gt;       delete these records before copying over a &#39;fresh&#39;<br>
&gt; version - hope that<br>&gt; &gt; makes<br>&gt; &gt;       sense.  I suspect it will be ddir or something to<br>&gt; delete the records<br>&gt; &gt; before I<br>&gt; &gt;       re-copy them, is that correct?<br>&gt; &gt;<br>
&gt; &gt;       Thanks for all the help - but using every form of<br>&gt; &quot;drop&quot; and &quot;drop<br>&gt; &gt; all&quot; still just<br>&gt; &gt;       takes too long since filePro apparently has to search<br>&gt; each individual<br>
&gt; &gt; record,<br>&gt; &gt;       even if using an index based on unique account<br>&gt; number, since there are<br>&gt; &gt; over<br>&gt; &gt;       1/2 million records it&#39;s just not a good solution at<br>&gt; this point - this<br>
&gt; &gt; other<br>&gt; &gt;        &#39;solution&#39; involves probably a little more heavy<br>&gt; lifting than might<br>&gt; &gt; be necessary<br>&gt; &gt;       but it does the trick.<br>&gt; &gt;<br>&gt; &gt;       I am currently writing the @menu portion so the<br>
&gt; client will only be<br>&gt; &gt; able to hit<br>&gt; &gt;       &#39;V&#39; to view and &#39;X&#39; to exit, etc.<br>&gt; &gt;<br>&gt; &gt;      Thanks again<br>&gt; &gt;<br>&gt; &gt;        Scott<br>&gt; &gt;<br>&gt; You can run a SYSTEM command to run the DDIR program with flags to<br>
&gt; delete the data before you start filling it up again..  Just<br>&gt; check out<br>&gt; the flags you can use in the manual.  (I believe that -KA will delete<br>&gt; all data and key elements and empty the indexes.  Once this<br>
&gt; is done you<br>&gt; have an empty file to work with.<br>&gt;<br>&gt;<br>&gt; Boaz<br></div></div>
<div>
<div></div>
<div class="h5">&gt; _______________________________________________<br>&gt; Filepro-list mailing list<br>&gt; <a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>&gt; <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
&gt;<br><br></div></div></blockquote></div><br>