Exercise 2.4: Compiling a member

Before you begin, you must complete Exercise 2.3: Verifying RPG source in disconnected mode.

So now that the code has been edited locally and verified, you are ready to perform a single member compile on the source member in your iSeries project.

To compile a single member:

  1. First change the preferences to compile interactively. Click Window > Preferences from the workbench menu.
    Window preferences iSeries Projects
  2. Expand iSeries Projects.
  3. Select Build and Compile.
  4. Clear the Run compiles as batch jobs check box.
  5. Click OK.
  6. Expand QRPGLESRC if it is not already.
  7. Right-click PAYROLLG and select Remote Actions > Compile > CRTBNDRPG on the pop-up menu.
    Compile PAYROLLG.rpgle

    Now the connection will be activated and you may be prompted for a user ID and password.

  8. You automatically connect to your iSeries system.

    Any local changes are uploaded to the same file in the associated library on the iSeries system.

    This action will compile your member and any errors will appear in the iSeries Error List.

    If you are not sure that the compile was successful, you can check the iSeries Commands Log.

    You could now run or debug your changed application.

You have compiled a single member.

Module recap

You have completed Module 2. Working with source in disconnected mode. You have learned how to:

Another way to work with iSeries Projects is to create a new project, populate that project with members and build the entire project. Continue to Module 3. Creating and Building an iSeries Project.