Algorithm DSECT statements

The algorithm area size must be defined for each detail file and any intermediate-index files, but is not required for top-level index files or files that are not part of a basic indexing structure. The size of the algorithm string is normally calculated using information in the DSECT of the detail or intermediate-index file. The reserved labels dsnd@nBEG&CG1 and dsnd@nEND&CG1 are used to indicate the beginning and end of the algorithm string.
Note:
  1. dsnd indicates the first 4 characters of the DSECT macro name of a detail or intermediate-index file.
  2. n identifies the path number to which the definition applies.
Figure 1 shows these labels used in the SAM5SR sample DSECT.
Figure 1. DSECT code to define the algorithm string size
***********************************************************************
*        ALGORITHM DESCRIPTION                                        *
***********************************************************************
         ORG SAM5REC&CG1
SAM5@0BEG&CG1 EQU *             PATH 0 DESCRIPTION
SAM5@0...&CG1 DS
SAM5@0...&CG1 DS
SAM5@0...&CG1 DS
SAM5@0END&CG1 EQU *
Note:
  1. @0 indicates that this applies to path zero (0).
  2. The labels between the BEG and the END labels can be used to define parts of the algorithm string.