PERFORM and CALL?

  • PERFORM → used for executing a paragraph or section within the same program (like a loop or subroutine).
  • CALL → used for calling an external program or subprogram.

Example:

PERFORM CALC-PARA.      *> internal call

CALL 'SUBPROG' USING VAR1.  *> external program call

Comments

Leave a Reply

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