To open the program list

Note: The main Program Definition form displays the product line and system code, and a list of programs within that system code. Depending on the options specified using the Show (F7) key, the list may be complete, or it may only include certain kinds of programs.
  1. (ADW) From the Environment Utilities or Application Development Workbench menu, choose Programmer Utilities, then Program Definition.

    - or -

    pgmdef [productline systemcode programcode]

    Note: If you are using multiple data areas and data IDs within a product line, you can enter a data area or a data ID instead of a product line. You will still be accessing the same program definition as if you had entered the product line that the data area or data ID is associated with. The difference is that if you run the program from within pgmdef, you will be accessing only the data associated with the data area or data ID. If you enter a product line, you will be accessing the data from the data area with the same name as the product line.

    (4GL) From the Environment 4GL menu, choose Programmer Utilities, then Query Definition.

    - or -

    pgmdef2 [productline systemcode programcode]

    Note: The Query Definition forms look the same and operate in a similar fashion as the Program Definition forms but only allow development of Online Inquiry, Batch Report, or Import and Export programs. In addition, as with pgmdef, you can enter a data area or a data ID instead of a product line. See the note for pgmdef for more information.

    The Program Definition form appears

  2. Type or press Select (F4) to choose the Product Line and System Code for which you want to define a program.

    The list of programs defined for the product line and system code appears.