Purpose
Retrieves a modified detail occurrence of a pageable map.
A GET DETAIL command can retrieve all the fields of a modified detail occurrence or only those fields whose MDTs are turned on.
Syntax
►►── GET DETail─┬───────────────────────────────────────────────────────────┬─► ├┬─ NEXt ◄ ─┬─┬────────────────────────────────────────────┬┤ │└─ FIRst ─┘ └─ RETurn KEY into data-field-name-variable ─┘│ └─ KEY ────┬──────┬──── key-number ─────────────────────────┘ ├─ IS ─┤ └─ = ─┘ ►────────┬─────────────────────────┬─── . ───────────────────────────────────►◄ ├─ ALL ◄ ────┬── FIElds ──┘ └─ MODified ─┘
Parameters
Retrieves the first modified detail occurrence that follows the detail occurrence referenced by the preceding pageable map command.
The preceding pageable map command must follow the most recent pseudo-converse.
Retrieves the first modified detail occurrence of the pageable map.
Note that the GET DETAIL FIRST command can be used repeatedly to retrieve all the modified detail occurrences of a pageable map. The first GET DETAIL FIRST command retrieves the first modified detail occurrence. Once retrieved, the occurrence is no longer considered as modified, and the second modified detail occurrence becomes the first modified detail occurrence. This modified detail occurrence can be retrieved by a subsequent GET DETAIL FIRST command, and so forth.
An end-of-data condition results if no pageable map command precedes the GET DETAIL command, if the preceding pageable map command resulted in an end-of-data or detail-not-found (see the KEY IS parameter below) condition or if the GET DETAIL command cannot find a modified detail occurrence before reaching the end of the set of detail occurrences.
Specifies the numeric variable field into which the runtime system moves the binary fullword value (if any) associated with the detail occurrence being retrieved. A value is associated with a detail occurrence by specifying the KEY IS parameter in a PUT DETAIL command.
If no value is associated with the detail occurrence, data-field-name-variable is set to zero. Data-field-name-variable does not have to be a binary fullword.
Specifies the modified detail occurrence to be retrieved based on the numeric key value associated with the detail occurrence. A key value is associated with a detail occurrence by specifying the KEY IS parameter in a PUT DETAIL command.
Key-number is either the numeric variable data field or the numeric literal itself.
The runtime system finds the first detail occurrence associated with the key value specified by key-number. If the detail occurrence is a modified detail occurrence, it is retrieved. If the occurrence is not a modified detail occurrence, or if no detail occurrence with the specified key value is found, a detail-not-found condition is set.
Specifies all the fields of the modified detail occurrence to be retrieved.
ALL is the default when neither ALL or MODIFIED is specified.
Specifies only those fields whose MDTs are turned on to be retrieved.
If MODIFIED is specified, variable data fields that map to nonretrieved fields retain their previous values.
Usage
Considerations:
|
Copyright © 2014 CA.
All rights reserved.
|
|