Skip to content

What are Actions?

An action is used to perform a task on a member, streamfile or other type of object. A comprehensive default set of actions is loaded directly from the extension. You can also easily change or add to actions—see View/Change/Add Actions, below.

Actions are defined commands used to perform tasks on members, streamfiles and other types of objects. For example, to compile a source file. Actions can be executed from two different places:

  • As you’re writing code. For example, to compile a program or module.
  • When you right click on a member, streamfile or an object from the OBJECT BROWSER.

A comprehensive set of Actions is provided, but you can add more or change the ones provided.

Running an Action

To run an Action, open a source member (or IFS streamfile) and press the shortcut key:

  • Windows: Control + E
  • Mac: Command + E

This shows a dropdown of the available Actions for the open file. Use the arrow keys to select which Action to run and hit enter to select it.

Example: to run the ‘CRTBNDRPG’ Action, you must open a source member with either RPG or RPGLE as the extension. Then, when you use the Run Action shortcut (above), you will see the list of available Actions.

Working with Actions

Hover over your connection name in the status bar and when the submenu appears, select Actions to show a list of available Actions.

  • Click on an action to change it.
  • Add actions with New Action.
  • Copy an existing action and modify it with Duplicate.

Action List UI


Actions storage

If you change or add actions as below, then all actions are saved in the code-for-ibmi.actions section in settings.json. You can also edit thecode-for-ibmi.actions section manually. If it doesn’t exist, you can create you own code-for-ibmi.actions section in settings.json.