VMS Help  —  COBOL  PROCEDURE_DIVISION, EVALUATE
  The EVALUATE statement selects a program action based on the evaluation
  of one or more conditions.

  Format -

           { subj-item }   [      { subj-item } ]
  EVALUATE { TRUE      }   [ ALSO { TRUE      } ] ...
           { FALSE     }   [      { FALSE     } ]

      { {    { ANY                                   }
      { {    { cond                                  }
      { {WHEN{ TRUE                                  }
      { {    { FALSE                                 }
      { {    { [NOT] {obj-item [{THRU   } obj-item]} }
      { {    {       {         [{THROUGH}         ]} }

      [     { ANY                                  }]     }           }
      [     { cond                                 }]     }           }
      [ALSO { TRUE                                 }] ... } ... stment} ...
      [     { FALSE                                }]     }           }
      [     { [NOT] {obj-item [{THRU   } obj-item]}}]     }           }
      [     {       {         [{THROUGH}         ]}}]     }           }

      [ WHEN OTHER stment ]

      [ END-EVALUATE ]
Additional Information: explode extract

subj-item
cond
obj-item
stment
Close Help