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
- Expand your connection until you find the ILE RPG file in which
you want to create the D-Specification.
- Double-click the file to open it in the Remote Systems LPEX editor.
- With your cursor inside the editor view, right-click and select New
> D-Specification. Or, from the workbench menu, click Source > New
> D-Specification.
- In the New RPG D-Specification wizard, specify a name and
purpose for the D-Specification. (Specifying a purpose is optional.)
- 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:
- 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.
- Named Constant
- 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.
- 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.
- 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.
- 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.
- Select from the three radio button choices underneath Where
to insert the new specification:
- At the current cursor location: to simply insert the
code at the current location in your source.
- In the D-Specifications of the current procedure: to
append the code to the D-Specification of the procedure where your cursor
is located.
- 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.
- Complete the rest of the wizard, using the F1 help for tooltips
and suggestions for all of the options.