Retrieving records from a result set
Once you have created a result set (using the GET command), you can transfer some or all of the records it contains to local storage for processing.
You can use the FETCH command to retrieve a single resource table record, multiple selected records, or the entire result set at one time.
Each resource table record that you retrieve contains current data about the managed resource that it represents. Each record also contains certain status information that is maintained by CICSPlex SM.
This status information is presented as a resource table called OBJSTAT. The contents of the OBJSTAT resource table are described below:
In effect, each record in a result set contains a pair of resource tables: an instance of the OBJSTAT resource
table followed by an instance of the resource table that was requested. The
managed resource data and the OBJSTAT status information can be retrieved
either as a pair or separately, depending on the option you specify with the
FETCH command:
- DATA
- Retrieves only the specified resource table data.
- STATUS
- Retrieves only the OBJSTAT status information.
- BOTH
- Retrieves both the resource table data and the OBJSTAT status information.
Figure 1. Using FETCH to retrieve result
set records
The result set referenced by TOKENA was created by issuing a GET command
for LOCTRAN records. Each record in the result set consists of LOCTRAN data
and OBJSTAT data.
