× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have a Logical file including records from with 3 different physical files:
1 - Purchase Ordes
2 - Customer Orders
3 - Other movements


Logical key shall be, for all three record types:

K  ItemNo     : Item Number
K  MDate      : Movement Date (in YYYYMMDD format)

The question is:
in case there is coincidence for records from the 3 physicals for same key values (Item and Date), I'd like to process Type1 records first, then type2 records, then type3.


AFAIK, logical file DDS specifications (e.g., defining Type1 first, Type2 seconf, Type3 third within DDS) do NOT guarantee any such order when reading the logical for equal key values...

I remember one could use in DDS something like "K *NONE" to bypass a key field when physical does not have a field, so I thought of adding a logical "virtual" field (file layout for physicals CANNOT be changed...) with "forced" values of 1, 2 and 3 for each record type, and include this "virtual" field as last key field, but how can I achieve this?

Any ideas are welcome!

--
Antonio Fernandez-Vicenti
afvaiv@xxxxxxxxxx



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.