About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
GALPL | Back to Index page |
Prolog Control Block Contents GALPL DSECT Storage Layout Cross Reference (Contains links to field and bit definitions) |
|
GALPL Prolog | Top of page |
NAME : HCPGALPL DESCRIPTION: Generalized Associative Lookup Parameter List DSECT : GALPL FUNCTION : Provide the parameters, work area and root for hash table used by HCPGAL LOCATED BY : N/A CREATED BY : A program that needs it. It may also be permanently defined in a data module such as in HCPHSH. DELETED BY : A program when function not needed. It may also never be deleted even when all the entries have been deleted. This is the case for the data module HCPHSH. RELOCATION CONSIDERATIONS : None COMMENTS : This parameter list is used by the generalized associative lookup routine to both define a hash table and store its high level index The caller is responsible for defining the size of the key (GALKEYSZ) and providing sufficient space for the high level index (GALINDX) The remaining fields are work areas. ECOMMENDED USAGE - In order to define a new hash table, a new entry must be created in the file HCPHSH ASSEMBLE. The entry should have the naming convention of HCPHSHxx. These entries are meant to serve as the root of the hash table, and can be referenced by other modules in CP as a DATA EXTERN. After defining a hash table within HCPHSH, all calls to the HCPGAL functions (such as inserting into the hash table) will require the address of the GALPL definition as input. For example, this can be acquired by: HCPEXTERN HCPHSHxx Reference to hash table ... L Ry,=A(HCPHSHxx) Point to the hash table HCPCALL HCPGALzz Make a hash table call For further information on how hash tables managed by HCPGAL work, refer to HCPGAL ASSEMBLE. |
GALPL Control Block Content | Top of page |
|
GALPL Storage Layout | Top of page |
*** GALPL - Generalized Associative Lookup * * +---------------------------+---------------------------+ * 0 | GALLOCK | GALCNUM | * +---------------------------+---------------------------+ * 8 | GALCCAP | GALEC | * +---------------------------+---------------------------+ * 10 | GALPC | GALTHRSH | * +---------------------------+---------------------------+ * 18 | GALUNQID | GALNEXT | * +-------------+------+------+---------------------------+ * 20 | GALNEWPI |:KEYSZ|:FLAGS| | * +-------------+------+------+ | * 28 | | * = GALWORK = * | +---------------------------+ * 78 | | GALENDWD | * +---------------------------+---------------------------+ * *** GALPL - Generalized Associative Lookup |
GALPL Cross Reference | Top of page |
Symbol Dspl Value -------------- ---- ----- GALCCAP 0008 GALCNUM 0004 GALEC 000C GALENDWD 007C GALFLAGS 0023 GALFLCHN 0023 01 GALINDX 0080 GALKEYSZ 0022 GALLENTH 007C 00000080 GALLOCK 0000 GALNEWPI 0020 GALNEXT 001C GALPC 0010 GALTHRSH 0014 GALUNQID 0018 GALWORK 0024 |
Copyright IBM Corporation, 1990, 2022