READNEXT command
Reads the next record during a browse; for use with VSAM and CICS-maintained data tables only. In Smalltalk, the parameters of the READNEXT command are contained in two classes: CICSReadnext and CICSReadnextResult.
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 CICSReadnext
 
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 CICSReadnextResult
 
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 next record in an ESDS file and assigns the RIDFLD.
| result ridfldValue |
result := CICS readnext
file: 'ESDSF1';
ridfld: 0;
rba;
exec.
ridfldValue := result ridfld.
Last modified date: 07/09/2019