Opening, browsing, and viewing include files

Use the Open Include File, Browse Include File, and View Include File actions to open or browse an include file from the editor.

Before you begin

Supported Editors:
  • PL/I Editor
  • z Systems® LPEX Editor
Developer for z/OS® must be able to locate the include file in the SYSLIB. Ensure that your property group settings are defined properly and that the data sets and members are properly allocated.

About this task

The Open Include File action opens a file in edit mode. The Browse Include File action opens it in read-only mode. The View Include File action opens 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 an include file from the editor, the editor associates the property group of the parent source program file with the include file. Any compiler options defined in the property group affect syntax checking of the parent file and the include file.

Opening and browsing

Procedure

To open or browse an include file from the editor:

  1. Select an include file name in a program file open in the editor.
  2. From the menu, select Open Include File or Browse Include File.
    The include file opens in the editor.

Viewing

Procedure

  1. Select an include file name in a program file open in the editor.
  2. Right-click and select View Include File from the menu.
    The include file 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.