Multiple choice technology mainframe

What is the use of PROCEDURE instruction?

  1. Subroutine should start with this instruction

  2. To convert all the local variables in the subroutine as global variables

  3. To convert all the variables used in subroutine as local variables

  4. Function should start with this instrucion

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

The PROCEDURE instruction in REXX starts an internal subroutine and protects its variables by making them local to that subroutine. Without PROCEDURE, variables in a subroutine are global. PROCEDURE does not convert global variables to local - it creates a new local variable scope.