SEGMENT keyword

Use the SEGMENT keyword to specify the segment name for processing by its associated subcommand.

SEGMENT is a required keyword for the following subcommands:

  • LOADCTL
  • OUTPUT
  • SELECT
Related keywords:
Format:
For the OUTPUT or the SELECT subcommand:
Read syntax diagramSkip visual syntax diagramSEGMENT= segment

For the LOADCTL subcommand:

Read syntax diagramSkip visual syntax diagramSEGMENT=( segment,ONLYDEPENDENTSBOTH)
segment
Specify a 1- to 8-character alphanumeric name of the segment that is coded on the SEGM statement in your DBD. You cannot specify the root segment or the SDEP segment for the LOADCTL subcommand.

The following parameters are available only when the SEGMENT keyword is specified for the LOADCTL subcommand:

ONLY
The LOADCTL function applies only to the specified segment. You can also specify O instead of ONLY.
DEPENDENTS
The LOADCTL function applies to the dependent segments of the specified segment, and not to the segment itself. You can also specify D instead of DEPENDENTS.
BOTH
The LOADCTL function applies to both the specified segment and its dependent segments. You can also specify B instead of BOTH.
Default:
None. For the LOADCTL subcommand, if only the segment name is specified, ONLY is used for the second parameter.
Site default support:
Not supported.
Keyword abbreviation:
Supported.