Dawn,
There are a lot if issues with this.
First the key to the Audit record could be RECORD.TYPE*RECORD.ID if your audit dates are MV. Otherwise you would use RECORD.TYPE*RECORD.ID*DATE*TIME.
This would allow easy lookups.
If that isn’t possible, like you mentioned, an Index on the Audit file. You would write an I-Desc like IF RECORD.TYPE = “ORDERS” THEN RECORD.ID ELSE “” and then don’t index on NULLs. That way a simple SUBR I-Desc could easily pull back all the orders that matched the record id.
Now if neither of those options will work for you, then I would try a preprocess routine to create a temp file with the data you need and with the @ID equal to the order id. Then pull the data from the temp file when processing.
David Green
--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+un...@googlegroups.com
For more options, visit http://groups.google.com/group/mvdbms
---
You received this message because you are subscribed to the Google Groups "Pick and MultiValue Databases" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mvdbms+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mvdbms/CANKEuc7T3xmaqQbt-Rbp0KCbNai%3Dyu6t7VLFtgV60jQPb8E0Ag%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mvdbms/003f01d719bf%24d603a510%24820aef30%24%40dagconsulting.com.