EXTPROC
[/?]
command
[arguments]
/?The EXTPROC command runs a command. The result of the EXTPROC command is the result of the command that is called.
The EXTPROC command can be regarded as a variation of the CALL command followed by a GOTO command. It acts exactly as does the CALL command, except that it appends the command script name and arguments to the end of the arguments that are explicitly supplied, and it then causes control to be transferred to the end of the command script.
Note 1: Unlike the 16-bit CMD supplied with IBM OS/2, where EXTPROC is a magic identifier rather than an ordinary command, redirection can be applied to the EXTPROC command in the 32-bit Command Interpreter and variable expansion will apply.
Note 2: Unlike the 16-bit CMD supplied with IBM OS/2, the command invoked by EXTPROC can be a built-in command or a command script.
CALL FOR GOTO GOSUB IF> RETURN CANCEL QUIT EXIT