The Remote System Explorer is built so that you can run programs and commands
on remote servers. The following documentation applies to running Native IBM® i server
programs, as well as remote Java programs, using launch configurations. Launch
configurations provide the ability to save and modify specific configurations
designed for running programs. However, you can also use the Commands Subsystem
to run predefined commands quickly and easily. See Using
predefined commands for more information.
There are two distinct ways of invoking the Run action, with and without
prompt. If you choose the option without prompt, the selected object will
be run with default values. If your program or command requires parameters,
you need to use the prompt version to create a launch configuration.
The Commands Log view displays any returned messages as your applications
are run. You can select a program or command and run it according to the type
of application it invokes. The following list describes the various launch
configurations available for running programs.
- IBM i Application
in the Remote System Explorer communication server job: This option lets
you run the program in the same job as the communication server. This is useful
if you use the communication server job to set up your environment, your library
list for example, and you need your program to run in this environment.
- IBM i Batch
Application: This option uses the SBMJOB command to run your application
in the batch subsystem that is specified in your user profile.
- IBM i Interactive
Application: For this option, your application will run in the interactive
job associated with the selected Remote System connection. If no interactive
job is associated with the connection, you will be asked to use the STRRSESVR
command to associate the interactive job with the specified connection.
- IBM i Multi-threaded
Application: Use this option to run multi-threaded applications. It creates
a BCI job in QUSRWRK and runs the application in that job. You can also use
this option to run any batch application. This option is only available for
objects of type *PGM.
- Host Java Application: This option runs Java programs on all platforms.
Launch configurations are saved configurations that you can invoke to run
programs and builds multiple times. You can also run programs directly from
the Commands subsystem, however, launch configurations enable greater productivity
because you can specify and save the information required to run your application,
including parameters, environment variables, and so on. You can also create
multiple launch configurations for the same application. Your configurations
are added to the workbench menu and can be launched in one quick step. You
can also edit and re-save launch configurations at any time. Your additions
and modifications take effect each time you use the configuration to run a
program or invoke a remote build of a program. Launch configurations are meant
to be compatible with project-oriented development, where you have a local
project of your source that you can work with while connected to the remote
server or offline. See
Importing resources from
a remote file system for more information.
Attention: When
you choose the Run option without prompt, a launch configuration with default
settings is created and saved. You can go into the Run Launch Configurations
window, rename the launch configuration and save it for future use.
To run a program or command without prompt, select a program or command
and do one of the following:
- In the Remote Systems view, right-click the program name and select where default_application_type is your application
type, such as i
Batch Application.
- From the workbench Run menu, choose where default_application_type is your application
type, such as i
Batch Application.
- From the down arrow next to the Run push button,
, choose where default_application_type is your application
type, such as i
Batch Application.
To invoke a Run Launch Configurations window (Prompt) for a specific program
or command, select that program or command and do one of the following:
- In the Remote Systems view, right click the program and select (with ellipses) from the pop-up menu where default_application_type is
your application type, such as i
Batch Application.
- From the workbench Run menu, choose Run....
- From the down arrow next to the Run push button,
, choose Run....
A Launch Configuration window will display, where you can specify parameters
for your application.
See the related links for more information on the launch configurations.