5 Top Limitations of COBOL SEARCH ALL

  1. Architect Jobs + Mainframe
    [Technical Architect +Mainframe+Jobs]
    The condition following the word WHEN can test only for equality:
  2. If the condition following the word WHEN is a compound conditional:
    a. Each part of the conditional can only consist of a relational test that involves an equal condition.
    b. The only compound condition permitted is with ANDs, not ORs.
    Valid: WHEN S-AMT (X1) = AMT1 AND TAX-AMT (X1) = AMT2
    Invalid: WHEN SALES-AMT (X1) = AMT3 OR AMT4 = AMT5
  3. Only one WHEN clause can be used with a SEARCH ALL.
  4. The VARYING option may not be used with the SEARCH ALL.
  5. The OCCURS item and its index, which define the table argument, must appear to the left of the equal sign.
    Valid: WHEN S-AMT (X1) = AMT1…
    Invalid: WHEN AMT1 = S-AMT (X1)…

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.