SETS command and call
You can use a SETS request to define points in your application at which to preserve the state of DL/I databases before initiating a set of DL/I calls to perform a function. Your application can issue a ROLS request later if it cannot complete that function.
EXEC DLI SETS [TOKEN(mytoken) AREA(data-area)]
where mytoken is a 4-byte token associated with the current processing point.
data-area is an area to be restored to the program when a ROLS request is issued. The first two bytes of the data-area field contain the length of the data-area, including the length itself. The second two bytes must be set to X'0000'.
CALL 'CBLTDLI' USING SETS,i/o_pcb[,i/o_area,token]
TOKEN(mytoken) AREA(data-area) in the command version and i/o_area,token in the call version are optional, but if you do omit them, this cancels any intermediate backout points set in previous SETS requests and ROLS backs out to the last commit point.