Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

ENTER

Description

The ENTER statement unconditionally passes control to another executable program. It takes the general form:

ENTER program_name

or 

ENTER @variable_name

Where:

  • 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.

Note:

The jBASE BASIC COMMON data area can be passed to another jBASE BASIC program by specifying the option "I" after the program name. Pass the COMMON data area only to another jBASE BASIC program.

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: 

ENTER "menu"

or

ProgName = "UPDATE"
ENTER @ ProgName


Go back to jBASE BASIC.

Was this article helpful?