For COBOL programs, you specify the paragraphs in the range for structure-based component extraction in one of three ways:
- Select a paragraph PERFORM statement to set the range to the performed paragraph or paragraphs. Component Maker includes each
paragraph in the execution path between the first and last paragraphs in the range, except when control is transferred by
a PERFORM statement or by an implicit RETURN-from-PERFORM statement.
- Select a pair of paragraphs to set the range to the selected paragraphs. You are responsible for ensuring a continuous flow
of control from the first to the last paragraph in the range.
- Select a section to set the range to the paragraphs in the section.
For traditional structure-based COBOL components, Component Maker inserts in the complement the labels of the first and last
paragraphs in the range. The first paragraph is replaced in the complement with a CALL statement followed by a GO TO statement.
The last paragraph is always empty.
The GO TO statement transfers control to the last paragraph. If the GO TO statement and its target paragraph are not required
to ensure correct call flow, they are omitted.