READPREV command
Reads the previous record during a browse. In Smalltalk, the parameters of the READPREV command are contained in two classes: CICSReadprev and CICSReadprevResult.
See CICS Application Programming Reference for the syntax of the command and a description of its parameters.
Defined instance methods
Parameters supplied to CICS in CICSReadprev
 
Parameter
Instance method
Mode
Type
Notes/exceptions
FILE(filename)
file:
Input
Fixed(8)
 
KEYLENGTH(data-value)
keylength:
Input
Binary 16
 
RBA
rba
Input
Switch
 
REQID(data-value)
reqid:
Input
Binary 16
 
RIDFLD(data-area)
ridfld:
I/O
Variable
 
RRN
rrn
Input
Switch
 
SYSID(systemname)
sysid:
Input
Fixed(4)
 
Parameters returned by CICS in CICSReadprevResult
 
Parameter
Instance method
Mode
Type
Notes/exceptions
LENGTH(data-area)
length
Output
Binary 16
 
RESP
resp
Output
Fixed(2)
Inherited from CICSResult.
RESP2
resp2
Output
Fixed(2)
Inherited from CICSResult.
RIDFLD(data-area)
ridfld
I/O
Variable
 
SET(ptr-ref)
set
Output
Variable
 
Example
Reads the previous record in a KSDS file.
| result |
result := CICS readprev
file: 'KSDSF1';
ridfld: 'Record';
keylength: 6;
exec.
Last modified date: 07/09/2019