5.2.6 EXECUTE
The EXECUTE command executes a specified routine in an aXes terminal operation script. Refer to 5.2.18 AxesTerminalService Scripts for more information about specifying and using aXes terminal operation scripts.
If the command specifies SCRIPT(*LIST), you must provide a list definition that contains the aXes terminal operation script. Refer to 5.2.18 AxesTerminalService Scripts for more information about specifying and using aXes terminal operation scripts.
To exchange field RTNSIG and RTNSCREEN values, you will need to specify the SERVICE_EXCHANGE(*FIELD) in the command string.
Syntax:
Command
|
Keyword
|
Value
|
Developer notes
|
EXECUTE
|
SCRIPT
|
*LOADED
|
Optional. Uses the script provided using the LOADSCRIPT command. This is the default value.
|
*LIST
|
The script is provided in a working list with this command.
|
ROUTINE
|
routine name
|
The name of a routine in the aXes terminal operation script. Refer to 5.2.18 AxesTerminalService Scripts for more information about specifying and using routines in aXes terminal operation scripts.
If not specified, a blank routine name is assumed. If your script does not contain named routines you do not need to specify this keyword.
|
RTNSIG
|
field name
|
The name of a field exchanged between your client program and the JSM that will receive the screen signature of the screen that is present following execution of the aXes terminal operation script.
|
RTNSCREEN
|
field name
|
The name of a field exchanged between your client program and the JSM that will receive the name of the screen that is present following execution of the aXes terminal operation script. The screen name is the user-defined name if an aXes project name was specified on the CONNECT command and a name was assigned to the screen. Otherwise the screen signature is returned.
|
|
Example
EXECUTE ROUTINE(ENTERORDER) RTNSCREEN(MYSCREEN) SERVICE_EXCHANGE(*FIELD)