Skip to main content
Nelson Schroth
Participating Frequently
Jul 10, 2024 9:54 AM UTC

UniVerse Indexes

We have a file that is used to find customers via a name & address formatted "matchcode".  This matchcode file has an index for customer number, as it has 38M entries.  For example:

MATCHCODE:     4537100110WSTLM00000BSHT
0001 59938613
0002 58926904

Often, there are more than one customer number (attributed) associated with a matchcode as shown in this example.  It seems that only <1> is indexed and not the others (.  Is this a function of how UniVerse indexes, or the dictionary value used or is it a function of how the index was created?

>LIST-INDEX MATCHCODE ALL
Alternate Key Index Summary for file MATCHCODE
File........... MATCHCODE
Indices........ 1 (0 A-type, 0 C-type, 1 D-type, 0 I-type, 0 SQL, 0 S-type)
Index Updates.. Enabled, No updates pending
 
Index name      Type  Build          Nulls  In DICT  S/M  Just Unique Field num/I-type
CUST.NUM         D       Not Reqd  Yes    Yes            S        L       N            1

DICT MATCHCODE    09:50:32am  10 Jul 2024  Page    1
Field.........    Type &    Field........    Conversion.. Column......... Output   Depth &
Name.......... Field.      Definition... Code........     Heading........ Format   Assoc..
                           Number
CUST.NUM       D    1                                                             CUST.NUM        9L          S

Interested in suggestions to handle this.

Nelson



------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------

    11 replies

    Manu Fernandes
    Inspiring
    Jul 20, 2024 12:05 PM UTC

    Let me explain better.

    • The MATCHCODE is built via a subroutine based upon the Name, Address, etc. of the customer.
    • the MATCHCODE file has 1-n matching customer numbers listed in it's attribute list
    • the INDEX was built on the MATCHCODE file via an I-Descriptor LOWER(@RECORD) 
    • There are over 37M MATCHCODE records, many of which have multiple customer numbers associated with it (for example, different family members at same address)

    The information I provided was on this index.

    Nelson



    ------------------------------
    Nelson Schroth
    president
    C3CompleteShop LLC
    Harrison OH US
    ------------------------------

    Hi Nelson,

    I understand it. 

    My suggest is to create a itype on CUST file calle  'MATCHC' which call your subr building the match code value

    The you index CUST file on MATCHC field.

    CREATE.INDEX CUST MATCHC NO. NULLS

    The content of the index ll be exactly the content of your MATCHCODE file.

    Let me know if you need help to build the itype/subr. 

    Regards 



    ------------------------------
    Manu Fernandes
    ------------------------------