Offline EXTRACT command
The scenarios in this section show how to use the offline EXTRACT command in conjunction with key related keywords and subcommands.
Collectively, these examples demonstrate all options that are available for customizing the output of a data extract. To exemplify segment selection/exclusion, the scenarios in this section use the segment hierarchy shown on Sample library JCL.
Primary command/scenario task | Subcommand/keyword | Concept/process | Page |
---|---|---|---|
EXTRACT Extract and Output Only Selected Segments | EXTRACT_FORMAT= EXTRACT EXPAND EXCLUDE SEGMENT with WHERE OFILECTL with OAREA OUTPUT SEGMENT |
| |
EXTRACT Generate a Subset of Area Data | EXTRACT_FORMAT= HDUNLOAD INCLUDE SEGMENT SAMPLE_LIMIT SAMPLE_INTERVAL OFILECTL |
| |
EXTRACT Extract a Selected Segment and Sort Data | EXTRACT_FORMAT= EXTRACT SORT EXPAND OUTPUT SEGMENT with FIELDS |
| |
EXTRACT Modify Segment Layout during Extract | INPUT_DSN_MASK EXTRACT_FORMAT= HDUNLOAD EXPAND OFILECTL OUTPUT SEGMENT with FIELDS |
| |
EXTRACT Create a Customized Extract File Format | EXTRACT_FORMAT=USER USER_RECORD with BREAK / BEFORE USER_RECORD with BREAK / AFTER FIELDS SEGMENT_RECORD_ PREFIX |
|
Related topic