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:
- 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.
- In the pop-up menu, select . The Build
Parts Editor opens the Build Descriptor part automatically; the default
view is the General Options view.
- 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 ; in the Show View dialog box, click to expand General and
select Outline.
- In the Outline view, right click a linkage options part and click Open.
The EGL Build Parts Editor displays the current part declaration.
- Click the Show TransferLink Elements button
on the editor toolbar. The Transfer to Program and Transfer
to Transaction lists display.
- To edit the Transfer to Program list, follow these steps:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.