[an error occurred while processing this directive]
HP OpenVMS Systems Documentation |
HP COBOL
|
Previous | Contents | Index |
See the rules for the INVALID KEY phrase, Section 6.6.10.
File Status |
Access Method |
Meaning |
---|---|---|
00 | All | Successful |
23 | Rand, Dyn | Record not in file (invalid key) |
43 | Seq | No previous READ or record not locked by prior READ or START |
49 | All | File not open, or incompatible open mode |
92 | All | Record locked by another program |
30 | All | All other permanent errors |
The DISPLAY statement transfers low-volume data from the program to the default system output device or to the object of a mnemonic-name. The WITH CONVERSION phrase in Format 1 contains a Hewlett-Packard extension to the DISPLAY statement. The Hewlett-Packard extensions to Formats 2 and 3 are COBOL language additions that facilitate video forms design and data handling.
Format 4 sets a program variable to the current command line argument number (to read with a Format 7 ACCEPT), Format 5 sets the name of an environment variable or system logical, and Format 6 sets the value of an environment variable or system logical.
src-item
is a literal or the identifier of a data item. The literal can be any figurative constant.arg-position
is a literal or identifier that specifies the desired argument position (on the run command line). It must be an unsigned integer.argument-number
is a mnemonic name associated with ARGUMENT-NUMBER in the SPECIAL-NAMES paragraph in the Environment Division, representing the current argument position.environment-name
is a mnemonic name associated with ENVIRONMENT-NAME in the SPECIAL-NAMES paragraph in the Environment Division, representing the name of an environment variable or system logical.environment-value
is a mnemonic name associated with ENVIRONMENT-VALUE in the SPECIAL-NAMES paragraph in the Environment Division, representing the contents of the variable associated with the ENVIRONMENT-NAME.envlog-name
references an alphanumeric data item, or is a nonnumeric literal.envlog-value
references an alphanumeric data item, or is a nonnumeric literal.output-dest
is a mnemonic-name defined in the SPECIAL-NAMES paragraph of the Environment Division.line-num
is a numeric literal that specifies a line position on the terminal screen. line-num must be a positive integer. It cannot be zero.line-id
is the identifier of a data item that provides a line position on the terminal screen. It must be a positive integer; it cannot be zero.plus-num
is a numeric literal that increments the current value for line or column position, or that increments the value of line-id or column-id. plus-num can be zero or a positive integer.column-num
is a numeric literal that specifies a column position on the terminal screen. column-num must be a positive integer. It cannot be zero.column-id
is the identifier of a data item that provides a column position on the terminal screen. It must be a positive integer; it cannot be zero.screen-name
is the name of a screen item defined in the SCREEN SECTION of the program.stment
is an imperative statement executed if an exception condition exists; for Format 6, this means the name of the environment variable or logical has not been set by DISPLAY, or not enough space can be allocated to store the environment variable or logical.stment2
is an imperative statement executed if the exception condition does not exist.
CONVERSION Phrase (Formats 1 and 2)
Size of mantissa |
COMP-1 has 7 digits (F-floating, S-floating) plus decimal point and sign
COMP-2 has 15 digits (G-floating, T-floating) or 16 digits (D-floating) plus decimal point and sign |
Sign of mantissa | Sign shown only for negative, space if positive |
Form of mantissa |
d.dddddd for COMP-1
d.dddddddddddddd for COMP-2 (G-floating, T-floating) d.ddddddddddddddd for COMP-2 (D-floating) "." replaced by "," if DECIMAL POINT IS COMMA |
Size of exponent |
2 decimal digits for COMP-1 (F-floating, S-floating)
2 decimal digits for COMP-2 (D-floating) 3 decimal digits for COMP-2 (G-floating, T-floating) |
Range of exponent |
-38 to +38 (base 10) for COMP-1 (F-floating, S-floating)
-38 to +38 (base 10) for COMP-2 (D-floating) -308 to +308 (base 10) for COMP-2 (G-floating, T-floating) |
Form of exponent | E begins exponent sign shown for negative and positive; all digits shown (for example, E+01) |
Size of mantissa |
COMP-1 has 7 digits (plus decimal point and sign).
COMP-2 has 16 digits (plus decimal point and sign). |
Sign of mantissa | Sign shown only for negative; space if positive. |
Form of mantissa |
d.dddddd for COMP-1.
d.ddddddddddddddd for COMP-2. "." replaced by "," if DECIMAL POINT IS COMMA. |
Size of exponent | 3 decimal digits for COMP-1 and COMP-2. |
Range of exponent | -308 to +308 (base 10) for COMP-1 and COMP-2. |
Form of exponent | E begins exponent sign shown for negative and positive; both digits shown (for example, E+01). <> |
Size of mantissa |
COMP-1 has 7 digits (F-floating, S-floating) plus decimal point and
sign.
COMP-2 has 15 digits (G-floating, T-floating) or 16 digits (D-floating) plus decimal point and sign. |
Sign of mantissa | Sign shown only for negative; space if positive. |
Form of mantissa |
d.dddddd for COMP-1 (F-floating, S-floating)
d.dddddddddddddd for COMP-2 (G-floating, T-floating.) d.ddddddddddddddd for COMP-2 (D-floating). "." replaced by "," if DECIMAL POINT IS COMMA. |
Size of exponent |
2 decimal digits for COMP-1 (F-floating, S-floating).
2 decimal digits for COMP-2 (D-floating). 3 decimal digits for COMP-2 (G-floating, T-floating). |
Range of exponent |
-38 to +38 (base 10) for COMP-1 (F-floating, S-floating).
-38 to +38 (base 10) for COMP-2 (D-floating). -308 to +308 (base 10) for COMP-2 (G-floating, T-floating). |
Form of exponent | E begins exponent sign shown for negative and positive; all digits shown (for example, E+01). <> |
Previous | Next | Contents | Index |