Exercise 2.1: Making source available offline

You want to edit and verify your source on a workstation. You do not have an existing iSeries Project. You can use the Make Available Offline action.

The Make Available Offline action downloads the selected files or members locally to their corresponding iSeries project. The corresponding iSeries project has the same host and the same library properties as the host name and the library of the selected source physical files or members. If such an iSeries project is not found, one will automatically be created.

To make source available offline:

  1. Expand the RSELABxx library (if it is not already) that contains the source files that you want to work with offline.
  2. Select the source physical files QDDSSRC and QRPGLESRC as you want the members in these source files to be made available for offline development. You can use the Shift key to make multiple selections.
  3. Right-click and click Make Available Offline on the pop-up menu.
    Make Available Offline

    The iSeries Projects Question dialog opens.

  4. Click Yes to proceed.


    Confirm download

    The iSeries Projects perspective opens with your new iSeries Project named s400a_RSELABxx. This project is created for you automatically and the source files QDDSSRC and QRPGLESRC are added to this project.

    Note:
    If you want to add more source files later to this iSeries project, you can use the Make Available Offline option again.

    Newly added files

    Now you need to verify that you have the latest cached source available before you begin to work offline.

  5. Expand QRPGLESRC and double-click PAYROLLG to open this source file in the LPEX Editor.
  6. Click Source and click Verify on the workbench menu.
    Verify Source

    This action will verify your member for syntax and semantic errors and any errors will appear in the iSeries Error List and cache all information required for subsequent offline verifys.

    Now you are ready to disconnect from the iSeries server.

  7. From the Remote Systems view, just below the iSeries Project Navigator, right-click on the connection and click Disconnect.
    Disconnect
    Note:
    You can also put an entire iSeries connection, and all the contents defined with that connection, into offline mode by right-clicking the connection and clicking Work Offline on the pop-up menu. This method of working offline prevents the Remote System Explorer from attempting to connect to the iSeries server if a request is made for remote information. For example, if you are verifying a local source file or member in an iSeries project, the project would attempt to connect to the server if the required information was not available in the cache. This can be prevented by switching the connection to offline mode.

You have downloaded selected files or members to your workstation, verified downloaded source, launched the editor on a local source member under an iSeries Project and put an iSeries connection into offline mode and now you are ready to begin Exercise 2.2: Editing local source members in disconnected mode.