Compiling your programs

About this task

You can compile your IBM® i programs from the Remote Systems view. The pop-up menu for source members includes compile submenus. The compile submenus contain several compile commands for various member types. A compile name is an identifier for a compile command to run on a remote system. For example, the compile label CRTBNDRPG tells the IBM i server to create a bound RPG program. Compile names are associated with source member types, such as *rpgle, *cl, *pf, *dspf, and so on. For this reason, you will only see the options to compile when you right-click these types of elements. There are two ways to compile: prompted and non-prompted. Both compile actions invoke a submenu with a list of compile names.

To compile a program:

Procedure

  1. In the Remote Systems view, drill down to a source physical file member and right-click. You can perform multiple selection for compilation by holding down the CTRL key and clicking various members (as long as they are compatible and from the same IBM i connection).
  2. Select Compile > or Compile (Prompt) > and then one of the following:

What to do next

  • Select Appropriate Compile Command such as CRTBNDRPG: A compile command associated with your selected source member type will display in the pop-up menu for your convenience. For example, select CRTBNDRPG to create a bound RPG program for a selected RPG file. If you want to use a different compile command than one of the defaults, choose the second option, described below.
  • Work With Compile Commands: Use the Work With Compile Commands window to choose the profile and the source member type that you want to work with from the drop-down lists at the top of the window, and add, change, or delete associated compile commands. This option is also helpful if you want to use a different compile command for your source member, other than the default associated compile command displayed in the pop-up menu. See the related links for more information.
If there are errors, the Error List view is automatically populated with the results of the compilation.

Feedback