DGL Statement Reference : EXECUTE

EXECUTE

Description
Invokes a program external to the Statement system. This statement invokes a program that is external to Statemate. The Documentor searches for the program name using the regular system search path, invokes the program, and sends its standard output to the document’s output segment file.
The EXECUTE statement function operates as a function that returns either stm_success or stm_error.
Syntax
[status := ] EXECUTE (calling_sequence);
Parameters
 
The calling_sequence is written in the same manner as when invoking the program from the shell command line. Therefore, the calling sequence can include arguments to be passed to the program. However, no evaluation of these arguments is done in the templatethe calling sequence is passed as a pure string.
 
Example
This following statement calls the operating system function DATE and writes the date to the output file:

EXECUTE (’date’);

See Also