Basic index parameters

The following must be coded before index parameters are used in the DBDEF macro:

  • The DSECT macro to define the index file, which includes:
    • Definitions of the fields in the index LRECs
    • Global symbols that specify how the index file is contained in physical records, including &SW00RBV to specify the algorithm used to access the top-level of the index file.
  • The DSECT macro to define the indexed file, which includes:
    • &SW00RBV set to "#TPFDBFF" for an indexed file
    • Bit 3 of &SW00OP3 set to 1 for an indexed fixed file or 0 for an indexed pool file
    • The statements that define the fields in the ALG string associated with each indexing path (see Figure 41).