CALL
[/?]
command
[arguments]
/?The CALL command runs a command. The result of the CALL command is the result of the command that is called.
The CALL command is present for compatibility only. The 16-bit CMD supplied with IBM OS/2 requires CALL because by default it does not nest command scripts. CALL is required to provide a means whereby command scripts can be nested. The 32-bit Command Interpreter nests command scripts by default, and CALL is unnecessary. To run a command script from within another command script, returning to the next command in the outer script when the inner one has finished, simply invoke the script by name.
Note 1: Unlike the 16-bit CMD supplied with IBM OS/2 redirection can safely be applied to the CALL command in the 32-bit Command Interpreter.
Note 2: The documentation in IBM OS/2 describes both the CALL command built into the 16-bit CMD supplied with IBM OS/2 and the CALL directive in CONFIG.SYS as if they were the same command. The CALL command in both the 16-bit CMD supplied with IBM OS/2 and the 32-bit Command Interpreter is nothing whatsoever to do with the CALL directive in CONFIG.SYS.
EXTPROC FOR GOTO GOSUB IF> RETURN CANCEL QUIT EXIT