The ENTER statement unconditionally passes control to another executable program. It takes the general form:
- program_name, is the name of the program for execution. The use of single or double quotes to surround program_name is optional.
- The '@' specifies that the program name is contained in a named variable.
- variable_name, is the name of the variable, which contains the program name.
Use ENTER to execute any type of program.
If the program which contains the ENTER command (the current program) was called from a JCL program, and the program for execution (the target program) is another jBASE BASIC program, control will return to the original JCL program when the target program terminates. If the target program is a JCL program, control will return to the command shell when the JCL program terminates.
An example is as follows:
ProgName = "UPDATE" ENTER @ ProgName
Go back to jBASE BASIC.