X"91" function 35
Performs an EXEC call (like the DOS 4B call) to the specified
program file, executing it.
Syntax:
call x"91" using result
function-code
parameter
Parameters:
|
Using call prototype (see
Library Routines - Key) |
Picture (32-bit systems) |
result |
cblt-x1-compx |
pic x comp-x. |
function-code |
cblt-x1-compx |
pic x comp-x. |
parameter |
Group containing: |
Group containing: |
|
name-len |
|
cblt-x1-compx |
|
pic x comp-x |
|
progname |
|
pic x(n) |
|
pic x(n) |
On Entry:
function |
Value 35 |
name-len |
The number of characters in the name of the program. If this is
set to zero, whatever has been previously written to the command line is
executed. |
progname |
The filename of the program to be executed. |
On Exit:
result |
Zero if the EXEC call was successful, nonzero otherwise. If the
reason for failure is an operating system error and has a number less than 255,
that number is returned. If the number is more than 255, 255 is returned. |
Comments:
To execute a command line instead of just a named program, set
name-len to zero, and set the command line using the
DISPLAY...UPON COMMAND-LINE syntax.
See Also: