In a COBOL "IF" statement, what happens if the condition is not met?

  • An error is generated
  • The "ELSE" statement is executed
  • The control transfers to the next statement outside the "IF" block
  • The program terminates abruptly
If the condition in a COBOL "IF" statement is not met, the control transfers to the next statement outside the "IF" block. If an "ELSE" statement is present, it will be executed; otherwise, the program continues with the next statement.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *