Exercise 2.3: Compiling source changes

Before you begin, you must complete Exercise 2.2: Editing an iSeries source member.

You need to compile your source file in order for the changes to take effect.

There are two steps to compile: create a module and then create the service program.

Note:
The library WSSLABxx must be in your library list to compile your source changes.

Creating the RPG module

To create the RPG module:

  1. In the Remote Systems view, select WDSCSRV.rpgle.
    To compile the source file
  2. Right-click and click Compile (Prompt) > CRTRPGMOD in the pop-up menu.

    The Create RPG Module (CRTRPGMOD) dialog opens.
    CRTRPGMOD Window

  3. Click OK.
    iSeries Command log
  4. Check the iSeries Command Log and see if the module was created.

    You have now completed the first step of the compilation process.

    Now you complete the second step in compiling the source file.

Creating the service program

To complete the second step:
Second step in compiling the source file

  1. Right-click WDSCSRV.module.
  2. Click Create > Service Program in the pop-up menu.

    The Create Service Program (CRTSRVPGM) dialog opens.
    Create Service Program window

  3. In the Export list, select *ALL.
  4. If you cannot see the Bind service program, select the Advanced check box.
  5. In the Bind service program field, type qdtssfl.
  6. In the Library field, type qsys.
  7. Click Add.
  8. Click OK.

This completes the compilation step. The service program is created.

You have created an RPG module and created a service program using that module.

Module recap

You have completed Module 2. Creating the iSeries service program for your Web application. You have learned how to:

Now that you have used the Remote System Explorer perspective to edit and compile an iSeries service program, you are ready to begin Module 3. Creating the customer list input page.