Exercise 3.13: Comparing files in the CODE Editor (optional)

Before you begin, you must complete Exercise 3.12: Comparing file differences from the Remote Systems view.

The CODE tool provides a side-by-side view of the members being compared. If you prefer this type of view follow the steps described next. You might want to skip this section if the Compare Tool you just used provides sufficient information for you. Now you will open a couple of files and edit them and use the CODE compare utility.

To compare files in the CODE Editor:

  1. In the Remote Systems view, right-click member PAYROLLC in QCBLLESRC.
  2. Click Open With > CODE Editor on the pop-up menu.

    This opens the CODE Editor window with the member. It will open in browse mode since it is locked by the LPEX Editor session.

  3. In the CODE Editor, open the PAYROLLC2 member.
  4. Click File > Open from the CODE Editor menu.

    The Select file - Open for Edit dialog opens.
    Select file -- Open for Edit dialog

  5. In the left pane of the Select file - Open for Edit dialog expand the R0S400A connection (the Remote System Explorer connection).
  6. Expand library RSELABXX.
  7. Select file QCBLLESRC.
  8. In the right pane of the Select file-Open for Edit dialog, select member PAYROLLC2 from the member list.
  9. Click OK.
  10. Click Actions > Compare from the CODE Editor menu.

    The Compare dialog opens:
    Compare dialog

    All entries are preloaded.

  11. Click Compare.

    The editor now has the PAYROLLC2 member loaded on the left and member PAYROLLC loaded on the right. In between the two members are two long vertical blue lines with horizontal yellow and red bars highlighting the differences in these members.
    Compare of two files

  12. Use the vertical scroll bars to move within the files.

    As you scroll, you will see where the differences are in the members.

  13. Click Ctrl + Shift + N to find the next mismatch.
  14. Click Compare > Exit compare from the CODE Editor menu (which was inserted while performing this action).

    The CODE Editor window re-opens.

    Close the CODE Editor.

  15. Click File > Exit from the CODE Editor menu. The workbench re-opens. Continue working in the workbench.

You have compared files using the CODE Editor and now you are ready to begin Exercise 3.14: Checking syntax.