Error when deleting the last record out of a file
Kenneth Brody
kenbrody at bestweb.net
Thu Dec 13 16:56:42 PST 2007
Quoting Mike Schwartz (Thu, 13 Dec 2007 17:13:16 -0600):
> One of my customers (filePro 5.0.5K2R4, SCO Unix 5.0.6) has a general
[...]
> The system works fine, except when finish my processing, I need to
> delete out all the records I have put there, and when I am deleting the very
> last record out of the file, I get the error:
>
> /u/filepro/storesort/indexabc.A: invalid argument
>
> Dummy field tt contains the users tty#.
>
> ClrSrt If: 'Clear out the storesort file after we're done...
> Then: '(Also: Clear HD32's before we start...)
> 220 ------- - - - - - - - - - - - - - -
> If:
> Then: lookup stx = storesort K=("TTY") i=A -bpG
> 221 ------- - - - - - - - - - - - - - -
> NXTstx If: not stx 'No more recs to delete for HD32
> Then: sleep "1000"; return
[... conditional "delete" ...]
> 224 ------- - - - - - -
> If:
> Then: getnext stx; goto NXTstx
[...]
Note your use of "-b" rather than "-n". I'd start by looking at that.
(Also, which line gives you the error?)
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list