Editing the transferToProgram element of a linkage options part

A transferToProgram element of a linkage options part specifies how a generated Java™ or COBOL program transfers control to a particular program and ends processing, as occurs when the originating program uses the transfer to program statement. To edit the transferToProgram element, follow these steps:
  1. Locate the EGL build file you want to work with in the Project Explorer view. To find it, open the EGL Source folder, and look for a file with the extension EGLBLD. Right-click on the build file to open the pop-up menu.
  2. In the pop-up menu, select Open With > EGL Build Parts Editor. The Build Parts Editor opens the Build Descriptor part automatically; the default view is the General Options view.
  3. If you have the Outline view open, you will see the Build Descriptor part listed under the name of your build file. If you do not have the Outline view open and want to open it, select Window > Show View > Other; in the Show View dialog box, click to expand General and select Outline.
  4. In the Outline view, right click a linkage options part and click Open. The EGL Build Parts Editor displays the current part declaration.
  5. Click the Show TransferLink Elements button on the editor toolbar. The Transfer to Program and Transfer to Transaction lists display.
  6. To edit the Transfer to Program list, follow these steps:
    1. At the bottom of the Transfer to Program list, click Add or press the Insert key, and type a value in the From Program (fromPgm) field, or select a program name from the From Program name drop-down list.
    2. To edit the To Program (toPgm) field, select the row in the Transfer to Program list that you want to edit, then click the To Program field once to put the field into edit mode. Type the program name or select a program name from the To Program drop-down list.
    3. If an alias name is needed, select the row in the Transfer to Program list that you want to edit, then click the Alias field once to put the field into edit mode. Type the alias name.
    4. To change the default linkage type associated with your program name, select the row in the Transfer to Program list that you want to edit, then click the Link Type field once to put the field into edit mode. Select the new linkage type from the Link Type drop-down list.
    5. If a package name is needed, as might be the case for Java if the From Program (fromPgm) is not in your workspace or is in a different package than the To Program (toPgm), select the row in the Transfer to Program list that you want to edit, then click the Package Name field once to put the field into edit mode. Type the package name in the field.
    6. Modify the Transfer to Program list as needed:
      • To reposition a transferToProgram element, select an element and click either Move Up or Move Down.
      • To remove a transferToProgram element, select an element and click Remove or press the Delete key.

Feedback