|
OPNQRYF/OVRDBF is not a kludge to me.
Let me explain the MEMBER field use in another fashion.
The order number field is what separates each individual order.
The ship date determines what non-pending batch each order is ultimately
placed into.
Field MEMBER does 1 job: separates orders into batches.
The batches are:
1) current orders
2) advance orders
3) pending orders (multiple batches could exist here)
When a DSR calls in a bunch of orders, they are transmitted one at a
time to the System i (This is a vendor restriction, not mine. My end
could handle multiple orders in a single transmission because the _order
number field_ will keep orders separate.).
Here's what happens when it arrives:
1) That order is placed in it's own pending batch.
2) The order is allocated against inventory.
3) A results text file is prepared for the DSR.
4) If it is a current order (based on ship date), it is immediately
placed in the current orders batch. Else it goes immediately into the
advanced orders batch. That pending batch now no longer exists.
5) That results text file is transmitted to the DSR.
This all happens within 2-3 seconds. We have 4 phone lines and a VPN
available for transmitting orders. Theoretically we could be receiving
from up to 8 DSRs simultaneously, though it rarely goes above 3.
A pending batch only exists long enough for the results to be generated
for the DSR. Then the pending batch vanishes because it gets 'absorbed'
by one of the two permanent batches. The only reason MEMBER field
exists is for these pending batches. Once it's in one of the permanent
batches, the ship date determines whether it's current or advanced, and
the order number keeps orders separate. From an IT dept view, field
MEMBER serves no purpose after the order transmission is completely
handled. Field MEMBER allows me to keep them logically separate without
having to create/delete *FILE objects continually.
Make more sense?
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.