exec_program()
This page describes one of the supplementary ways of running an application.
The main way to run an application is the RUN statement.
exec_program()
is used to run a 4GL program on a specified GUI server instance. It takes
4 arguments and has this syntax:
exec_program(command, server,
instance, user_id)
where:
- command
= a variable of VARCHAR data type or a quoted character string specifying
the path to an application to be run,
- server
= a variable of the VARCHAR data type or a quoted character string specifying
the IP or the domain name of an application server.
- instance = a variable of the VARCHAR
data type or a quoted character string specifying the name of the application server instance.
- user_id
= a variable of the VARCHAR data type or a quoted character string specifying
the user account to run an application for.
Here are examples of the exec_program()
function:
CALL exec_program("my_program",
"192.168.10.213", "default", "SYSTEM")
CALL exec_program("my_program",
"190.155.207.10", "secure", "admin")