|
Everyone, thanks for the help. The problem is nothing to do with the time.
In fact I can't say how long the operation took for sure.
2 jobs use the same code to look for the next available reference number.
CALLP GetTheGodDamNo ()
CALLP WriteTOFile ( )
Which does
CHAIN myfile
IF %FOUND
RETURN *OFF
ENDIF
WRITE MyFile
Now perhaps the first procedure is too long : Theoretically, the refNo can
be between AA00001 and ZZ99999 so only used numbers are stored in the file.
These numbers correspond to a physical emplacement in our archives. Numbers
can become liberated for use by another client. The first available number
might be AB00020 and the next PG00035. The program scans for the first
available number using SETLL to stop when the number calculated doesn't
exist in the file.
I can't use a DATAAREA as suggested because each calcul starts at AA00001.
The user wants to reuse all available emplacements. But, that gives me an
idea. When the program requests a reference number to be created, it uses a
DATAAREA to prevent other jobs from calculating until it's finished. How
about that?
It still doesn't explain to me why the two jobs come up with the same
answer AND both WRITEs worked. Could it be a serious problem in performance?
Should I have used FRCRATIO on OVRDBF?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.