|
I have two files SourcePF is my physical file and SourceLF is a logical
built over that PF. Both are included in the program as update files with
add.
In a subroutine the program sets a HIVAL on the logical and then does a
readp in order to get the highest shipping number. At this point I
believe this field is locked and no other process can access read that
record.
it then increrments the count and writes it to a variable. The
other variables are setup and then the program finally writes a new record
to the Physical file, which at that point the lock is released correct?
I am just checking every possible place for this thing to create duplicate
records (I did not write the code, just plugging the hole).....and making
sure that neither program can dup up the same number.
As an Amazon Associate we earn from qualifying purchases.
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.