Commands can be started from the Remote Explorer by defining user actions and selecting them from the context menu of the Remote Explorer.

User actions can be managed in the preferences.

Main Menu ⇒ Window ⇒ Preferences ⇒ User Actions

New User Action

An user action is one command. It does not support multiple commands. You can create a CL with multiple commands which can be executed as an user action.

Placeholders

Placeholders are supported so that you can pass the name of the current selection in the Remote Explorer to the user action command.

  • ${connection} — selected connection name
  • ${library} — selected library name
  • ${object} — selected object name
  • ${member} — selected member name
  • ${path} — IFS path of the selected resource
  • ${type} — type of the selected object or member
  • ${attribute} — attribute of the selected object
  • ${user} — name of logged in user
  • ${streamfile} — selected stream file name
  • *${basename} * — base name of the selected stream file (example.rpgle => example)

Execution

All defined user actions are available from the context menu in the Remote Explorer.

Run User Action

Batch

As a default all user actions are executed interactively which blocks the UI until the user action is finished.

User actions can be defined to be executed in "Batch". This means an extra thread is started on the PC which executes the user action command which does not block the UI.

Note: In "Batch" mode no job will be submitted with SBMJOB on the IBM i server. The batch handling is done on the PC. A new thread is started which executes the command.