Carel,

I don't want to be argumentative, but I use this technique all the time.
It hasn't failed me yet.

delete with a factor 1 argument does the positioning for you - it deletes
the first record in the file with that key field, and sets %found on

Rick

-------------original message---------------
Rick,

I think you will not delete any record the way you do it. You will get an
NF or EOF condition and the file pointer will be moved to EOF and remains
there.

So I use SETLL to reset the file pointer (just to be sure it is in the
right position) and then start deleting the records (by key).

Regards,
Carel Teijgeler.

*********** REPLY SEPARATOR  ***********

On 18-9-03 at 15:04 rick.baird@xxxxxxxxxxxxxxx wrote:

>Carel,
>
>If you're going to use the cycle, why setll?  just do it this way:
>
>fBONLPF    IP   E           K DISK
>fBLPART    UF   E           K DISK
>
>c     ORDER         Delete    BLPART
>
>c                   Dow       %found(BLPART)
>c     ORDER         Delete    BLPART
>c                   enddo






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.