The DBCLS command is usually the last command macro issued on a Subfile , Files all updates made to the Subfile to DASD , Need to code regardless of modification to Subfile to release blocks and SW00SR slot , All opened Subfiles should be closed before EXITC , Can close more than One Subfile with one call
Mandatory Parameters for DBCLS
REF= | FILE= (or both),
REF=ALL can be coded to close all open Subfiles
NODUMP
Optional Parameters for DBCLS
ABORT=
ABORT is coded for closing a Subfile without filing blocks to DASD , Use only when opened in the DETAC mode
ALG= | ORD = | FADDR = , SUFFIX=
RELEASE|NORELEASE|REUSE
RELEASE , Releases the SW00SR Slot and is the default , if NORELEASE is coded the SW00SR slot is not released , You may perform a subsequent Command on the Subfile
REUSE
SW00SR Slot , Key parameters are retained , SW00FAD is zeroised , can issue a subsequent DBRED with a different ALG | ORD | FADDR , Cannot use REUSE and RELEASE together.