Opening, browsing, and viewing copybooks

Use the Open Copy Member, Browse Copy Member and View Copy Member actions to open, browse, or view a copybook.

Before you begin

Supported Editors:
  • COBOL Editor
  • z Systems® LPEX Editor
Ensure that your property group settings are defined properly and that the data sets and members are properly allocated so that the copybook can be found in SYSLIB.

About this task

The Open Copy Member action opens a file in edit mode. The Browse Copy Member action opens it in read-only mode. The View Copy Member action opens a copybook in edit mode; however, you cannot save the changes in the same file. You can save the file under a different name.

When you open a copy member from the editor, the editor associates the property group of the parent source program file with the copy member. Any compiler options defined in the property group affect syntax checking of the parent file and the copy member.

Opening and browsing

Procedure

To open or browse a copybook from the editor:

  1. Select a copybook name in a program file open in the editor.
  2. From the menu, select Open Copy Member or Browse Copy Member.
    The copybook opens in the editor.

Viewing

Procedure

  1. Select a copybook name in a program file open in the editor.
  2. Right-click and select View Copy Member from the menu.
    The copybook opens in the editor.
  3. If you modify the file, you are prompted to save the file with another name.
    Note: The Save as feature cannot be used to create a member or sequential data set. The file is saved in your local workspace project.