Creating an RPG Definition Specification in the Remote Systems LPEX editor

Before you begin

You can create a Definition Specification from any ILE RPG file in the Remote Systems LPEX editor. A D-Specification defines items used in your program, such as standalone fields, named constants, and data structures with or without a subfield.

About this task

To create the D-Specification:

Procedure

  1. Expand your connection until you find the ILE RPG file in which you want to create the D-Specification.
  2. Double-click the file to open it in the Remote Systems LPEX editor.
  3. With your cursor inside the editor view, right-click and select New > D-Specification. Or, from the workbench menu, click Source > New > D-Specification.
  4. In the New RPG D-Specification wizard, specify a name and purpose for the D-Specification. (Specifying a purpose is optional.)
  5. Select the type of D-Specification from the Type drop-down list. Your selection determines the content of the rest of the pages in the New RPG D-Specification wizard. Use the F1 help throughout the rest of the wizard for more information on each option. You have the following choices:
    1. Standalone Field: to create a standalone field type on a field-type page or field-type keyword page, which contains field types and their keywords.
    2. Named Constant
    3. Program-described data structure: to create a Simple data structure keyword page or a Simple data structure subfield page, where the keywords and subfields are created separately.
    4. Externally-described data structure: to create an External data structure page or an External data structure subfield page, where the keywords and external subfields are created separately.
    5. Program status data structure: to create a Program status data structure subfield prefix page, and to specify the keywords and subfield prefixes for the Program status data structure.
    6. File information data structure: to create a File information data structure subfield prefix page, and to specify the keywords, subfield prefixes, and the File information data structure type.
  6. Select from the three radio button choices underneath Where to insert the new specification:
    1. At the current cursor location: to simply insert the code at the current location in your source.
    2. In the D-Specifications of the current procedure: to append the code to the D-Specification of the procedure where your cursor is located.
    3. In the global D-Specifications: to insert the code right before the first found Input specification, which could be a C-Specification, O-Specification, P-Specification, "/free", "**", or the end of the file.
  7. Complete the rest of the wizard, using the F1 help for tooltips and suggestions for all of the options.

Feedback