<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Just to answer your first questions...John was commenting on the
possibility that if you called a SYSTEM command to run ddir as I
suggested, you might be doing so from within the file that you wish to
delete the existing records.&nbsp; The result of this is that you delete all
the records but keep the one you are standing on.&nbsp; My assumption was
that you would execute this from the master file before moving the data
to the new file.&nbsp; Under this circumstance you would delete all the
records and there wouldn't be one left over.<br>
<br>
If you are creating a new file and just using the unqualified version
of this file, then just using the -K flag will delete all the records
in that file.&nbsp; If you want to delete all records in all qualifiers then
you need to use -KA.&nbsp; If you are creating a separate qualified file for
each customer and just want to delete a specific qualifier then "-K -m
qualifier" will delete the records in just that particular qualifier.<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> wrote:
<blockquote
 cite="mid:445ca8160909140828u50e78ed5o22d66d77d89e6501@mail.gmail.com"
 type="cite">
  <div>&nbsp; Sorry John, I was just uncertain of the exact flags.</div>
  <div>&nbsp; Also, I was confused by the one blank record idea because I
was also working</div>
  <div>&nbsp; on some import/export stuff....that's another story.</div>
  <div>&nbsp;</div>
  <div>&nbsp; Anyways, here is where I'm at.</div>
  <div>&nbsp; I have everything I want setup so far...except one thing I'm
not certain of.</div>
  <div>&nbsp; Here is my input processing on the "new" file I created.</div>
  <div>&nbsp; Now, I'm not sure how to get the browse window keys to work.</div>
  <div>&nbsp; You can see from my processing that I want to be able to hit
"V" to view</div>
  <div>&nbsp; the screen 1v in this main file.&nbsp; I also want to be able to
hit "N" for notes and</div>
  <div>&nbsp; "P" for payments when at this browse window.</div>
  <div>&nbsp; I have tried using the @bk command but it doesn't do anything.</div>
  <div>&nbsp; Keep in mind, I ONLY want them to be able to view things, NOT
change anything.</div>
  <div>&nbsp; What am I missing here?</div>
  <div>&nbsp; Also, when hitting "X" from this browse window, I want it to
exit completely, </div>
  <div>&nbsp; not go to the filePro IUA menu.</div>
  <div>&nbsp; </div>
  <div>&nbsp; Input processing table:</div>
  <div>&nbsp;</div>
  <div>&nbsp;1</div>
  <div>&nbsp; @menu&nbsp; If:</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: dim myiua(3)</div>
  <div>&nbsp;2</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: myiua["1"]="Choose Search Option"</div>
  <div>&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Then: myiua["2"]="A:Search by Acct Num"</div>
  <div>&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Then: myiua["3"]="B:Search by Last Name"</div>
  <div>&nbsp;5</div>
  <div>rptmnu&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: cls("22")</div>
  <div>&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: menu myiua dosrch1, dosrch2</div>
  <div>&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: exit</div>
  <div>&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>dosrch1Then: lookup act = mainfile k=3&nbsp;&nbsp; i=A&nbsp; -nx b="(brw=12
xkey=x pop=1v prc=actn fill=asc,top) [ Acct Num&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
  <div>&nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Beg Bal&nbsp;&nbsp;&nbsp;&nbsp; Payments&nbsp;&nbsp;&nbsp; Curr Bal]
*3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*22&nbsp;"</div>
  <div>&nbsp;</div>
  <div>10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Then: end</div>
  <div>&nbsp;</div>
  <div>&nbsp;11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:&nbsp; @bk="N"</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: ...does a browse lookup to the notes file,
matching on Acct&nbsp;#</div>
  <div>&nbsp;</div>
  <div>&nbsp;13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If:</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: end</div>
  <div>14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>dosrch2Then:&nbsp;....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>&nbsp;</div>
  <div>&nbsp;17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>actn&nbsp;&nbsp;&nbsp;&nbsp; Then: show \r V \r to View \r N \r for Notes \r P \r
for Payments; end</div>
  <div>18&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If:</div>
  <div>name&nbsp;&nbsp;&nbsp;Then:&nbsp; show \r V\r to View \r&nbsp;N \r for Notes \r P \r for
Payments; end</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>&nbsp;&nbsp; What am I missing here???</div>
  <div>&nbsp;&nbsp; thanks</div>
  <div>&nbsp;</div>
  <div>&nbsp;&nbsp; Scott</div>
  <div>&nbsp;</div>
  <div>&nbsp;<br>
  <br>
  </div>
  <div class="gmail_quote">On Fri, Sep 11, 2009 at 2:13 PM, John Esak <span
 dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:john@valar.com">john@valar.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">I'm
not sure why you want to leave one blank record in the files you want to<br>
clear. &nbsp;The command to clear ALL records on Unix is:<br>
    <br>
ddir filename -k &nbsp; (kill the main file only (the unqualified file))<br>
    <br>
ddir filename -ka &nbsp;(kill all qualifiers as well)<br>
    <br>
ddir filename -k -m qualifier &nbsp;(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. &nbsp;F10 in Define Menus for example.<br>
    <font color="#888888"><br>
John<br>
    </font>
    <div>
    <div class="h5"><br>
    <br>
    <br>
&gt; -----Original Message-----<br>
&gt; From: filepro-list-bounces+john=<a moz-do-not-send="true"
 href="http://valar.com/" target="_blank">valar.com</a>@<a
 moz-do-not-send="true" href="http://lists.celestial.com/"
 target="_blank">lists.celestial.com</a><br>
&gt; [mailto:<a moz-do-not-send="true"
 href="mailto:filepro-list-bounces%2Bjohn">filepro-list-bounces+john</a>=<a
 moz-do-not-send="true" href="http://valar.com/" target="_blank">valar.com</a>@<a
 moz-do-not-send="true" 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 moz-do-not-send="true"
 href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>;
    <a moz-do-not-send="true" 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: "<a moz-do-not-send="true"
 href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>" &lt;<a
 moz-do-not-send="true" 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 moz-do-not-send="true"
 href="mailto:ken.m.cole@gmail.com">ken.m.cole@gmail.com</a>&gt;, &nbsp; &nbsp; &nbsp;
&nbsp;filePro Mailing List<br>
&gt; &gt; &nbsp; &nbsp; &lt;<a moz-do-not-send="true"
 href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt; &nbsp; &nbsp; &lt;<a moz-do-not-send="true"
 href="mailto:445ca8160909110728r2015be5cr7e1fbe2285d37347@mail.gmail.com">445ca8160909110728r2015be5cr7e1fbe2285d37347@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset="iso-8859-1"<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; Okay, well I decided to go in another direction on<br>
&gt; this due to time<br>
&gt; &gt; constraints.<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; What I did is create a new file that mirrors the<br>
&gt; 'main' file NRdebtor<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; I copied over JUST the records for the client that<br>
&gt; wants access so<br>
&gt; &gt; just their<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; records are in this file - they will ONLY be allowed<br>
&gt; to browse their<br>
&gt; &gt; data,<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; nothing else.<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; 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; &nbsp; &nbsp; &nbsp; 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; &nbsp; &nbsp; &nbsp; So, to do this, what is the command to delete all the<br>
&gt; records (except<br>
&gt; &gt; 1 blank)<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; from this new "mirror" file that has only this<br>
&gt; clients data in it?<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; 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; &nbsp; &nbsp; &nbsp; delete these records before copying over a 'fresh'<br>
&gt; version - hope that<br>
&gt; &gt; makes<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; sense. &nbsp;I suspect it will be ddir or something to<br>
&gt; delete the records<br>
&gt; &gt; before I<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; re-copy them, is that correct?<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; Thanks for all the help - but using every form of<br>
&gt; "drop" and "drop<br>
&gt; &gt; all" still just<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; takes too long since filePro apparently has to search<br>
&gt; each individual<br>
&gt; &gt; record,<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; even if using an index based on unique account<br>
&gt; number, since there are<br>
&gt; &gt; over<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; 1/2 million records it's just not a good solution at<br>
&gt; this point - this<br>
&gt; &gt; other<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;'solution' involves probably a little more heavy<br>
&gt; lifting than might<br>
&gt; &gt; be necessary<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; but it does the trick.<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; I am currently writing the @menu portion so the<br>
&gt; client will only be<br>
&gt; &gt; able to hit<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; 'V' to view and 'X' to exit, etc.<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp;Thanks again<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;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.. &nbsp;Just<br>
&gt; check out<br>
&gt; the flags you can use in the manual. &nbsp;(I believe that -KA will
delete<br>
&gt; all data and key elements and empty the indexes. &nbsp;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 class="h5">&gt; _______________________________________________<br>
&gt; Filepro-list mailing list<br>
&gt; <a moz-do-not-send="true"
 href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
&gt; <a moz-do-not-send="true"
 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>
</blockquote>
</body>
</html>