Multiple choice technology mainframe

CALL "MultiplyNs" USING N1,N2,STR In the above statement, the USING clause must list the passed fields in the sequence that the subprogram requires

  1. True

  2. False

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

In the COBOL CALL statement, the USING clause must list parameters in the exact sequence that the called subprogram expects them. Parameter matching is positional - the first parameter in USING corresponds to the first parameter in the called program's linkage section, the second to the second, and so on. This sequence is critical for correct data passing.

AI explanation

In COBOL, when you CALL a subprogram with a USING clause, the calling program must list the arguments in the exact order the subprogram's own PROCEDURE DIVISION USING expects them, since parameters are matched positionally, not by name. Passing them out of order causes the subprogram to misinterpret which field is which, even though no compile error occurs.