The OBJECT-COMPUTER
paragraph is used in the CONFIGURATION SECTION of the ENVIRONMENT DIVISION to specify characteristics of the computer on which the object program will be executed. It defines memory allocation, segment limits, and other execution environment parameters.
OBJECT-COMPUTER. computer-name [MEMORY SIZE IS integer-1 {WORDS|CHARACTERS|MODULES}] [PROGRAM COLLATING SEQUENCE IS alphabet-name-1] [SEGMENT-LIMIT IS segment-number].
Parameter | Description |
---|---|
computer-name | Name of the target computer system |
MEMORY SIZE | Specifies memory allocation (largely obsolete in modern systems) |
PROGRAM COLLATING SEQUENCE | Defines character comparison sequence for the program |
SEGMENT-LIMIT | Threshold for memory segmentation (0-99) |
ENVIRONMENT DIVISION. CONFIGURATION SECTION. SOURCE-COMPUTER. IBM-3090. OBJECT-COMPUTER. IBM-3090.
Simple specification for target computer.
ENVIRONMENT DIVISION. CONFIGURATION SECTION. SOURCE-COMPUTER. IBM-MVS. OBJECT-COMPUTER. IBM-MVS MEMORY SIZE IS 4096 WORDS.
Specifying memory size for the target computer.
ENVIRONMENT DIVISION. CONFIGURATION SECTION. SPECIAL-NAMES. ALPHABET EBCDIC-SEQUENCE IS EBCDIC. SOURCE-COMPUTER. IBM-Z. OBJECT-COMPUTER. IBM-Z PROGRAM COLLATING SEQUENCE IS EBCDIC-SEQUENCE.
Defining collating sequence for character comparisons.
ENVIRONMENT DIVISION. CONFIGURATION SECTION. SOURCE-COMPUTER. IBM-Z15. OBJECT-COMPUTER. IBM-Z15 SEGMENT-LIMIT IS 49.
Setting segment limit for memory management.
ENVIRONMENT DIVISION. CONFIGURATION SECTION. SPECIAL-NAMES. ALPHABET ASCII-SEQUENCE IS ASCII. SOURCE-COMPUTER. IBM-MAINFRAME. OBJECT-COMPUTER. IBM-MAINFRAME MEMORY SIZE IS 8192 CHARACTERS PROGRAM COLLATING SEQUENCE IS ASCII-SEQUENCE SEGMENT-LIMIT IS 32.
Full specification with all available options.
Segment Range | Type | Description |
---|---|---|
0-49 | Fixed Permanent | Always remain in memory |
50-99 | Independent | Can be overlaid in memory |
Specifies compilation environment characteristics
Defines implementation-specific names and features
Container for environment specifications
Defines character sets and collating sequences