Follow the instructions below to extract structure-based RPG components.
Select the program you want to slice in the HyperView Objects pane and click the
button. A dialog opens where you can enter the name of the new component in the text field. Click
OK. Component Maker adds the new component to the list of components. Double-click the component to edit its properties.
Select the subroutine or procedure you want to slice in the Source pane. In the Point field, click the link for the current selection and choose Set in the pop-up menu.
Note: To unset an entry point, click it and choose Unset in the pop-up menu. To navigate quickly to an entry point in the source, click it and choose Locate in the pop-up menu.
In the Description field, click the
here link to open a text editor where you can enter a description of the component. The description appears in the box below the
Description field in the Properties tab and in the Description property for the logical component repository object.
Click the
button on the tool bar to start extracting the logical component. You are prompted to confirm that you want to continue.
Click
OK.
The Extraction Options dialog opens. Set options for the extraction and click
Finish.
Component Maker performs the extraction. You are notified that the extraction is complete. If the extraction completed without
errors or warnings, click
OK to continue. If the extraction completed with errors or warnings, click
Yes in the notification dialog to view the errors or warnings in the Activity Log. Otherwise, click
No.