Multiple choice technology mainframe

To use a variable from a main progam in the sub program

  1. it should be defined as GLOBAL

  2. should be defined in the linkage section

  3. Should be defined with the same name in both programs

  4. Cannot be used

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

Similar to 150625, this asks about sharing variables between main and sub programs. In mainframe contexts like COBOL, variables are typically defined as GLOBAL/external AND included in the LINKAGE SECTION for proper parameter passing between programs.