DELETE command
Deletes a record from a file. In Smalltalk, the parameters of the DELETE command are contained in two classes: CICSDelete and CICSDeleteResult.
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 CICSDelete
 
Parameter
Instance method
Mode
Type
Notes/exceptions
FILE(filename)
file:
Input
Fixed(8)
 
GENERIC
generic
Input
Switch
 
KEYLENGTH(data-value)
keylength:
Input
Binary 16
 
RIDFLD(data-area)
ridfld:
Input
Variable
 
RRN
rrn
Input
Switch
 
SYSID(systemname)
sysid:
Input
Fixed(4)
 
Parameters returned by CICS in CICSDeleteResult
 
Parameter
Instance method
Mode
Type
Notes/exceptions
NUMREC(data-area)
numrec
Output
Binary 16
 
RESP
resp
Output
Fixed(2)
Inherited from CICSResult.
RESP2
resp2
Output
Fixed(2)
Inherited from CICSResult.
Example
Deletes a record from a generic KSDS file and assigns the NUMREC result.
| result myNumRec |
result := CICS delete
file: 'KSDSF2';
generic;
keylength: 6;
ridfld: 'Record';
exec.
myNumRec := result numrec.
Last modified date: 05/12/2020