Multiple choice technology programming languages

Where can you specify an indicator in LOKUP operation?

  1. HI

  2. LO

  3. EQ

  4. MQ

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In the LOOKUP operation, the EQ indicator is set when an exact match is found for the search argument. HI indicator is set if the search value is higher than all entries, LO if it's lower than all entries, and MQ if multiple matches exist in a file with duplicate keys.

AI explanation

In mainframe Assembler's LOKUP macro (table lookup, e.g., in BAL or COBOL-adjacent table-search operations), an indicator can be specified to control which comparison condition triggers a match — EQ specifies that the lookup should stop and flag a match on an equal-condition (exact match) between the search argument and table entry, which is the standard/default comparison mode for a straightforward table lookup. HI and LO would correspond to high/low comparison conditions (used for range or approximate lookups), and MQ isn't a standard condition code in this context. EQ is the indicator used when an exact-match lookup is required.