DELIMS calls (Delete an IMS segment)

This IEB call deletes the current segment and must be preceded by a GETIMS function call with the USING_VIEW parameter.

1 DELIMS (SEGMENT=delsegm)
delsegm
The name of the segment you want to delete.
If FM/IMS encounters an unavailable HALDB partition or DEDB area, the DELIMS function receives a return code of 8 and the ISPF variable FMSTATUS indicates an IMS status code of:
FH
Unavailable DEDB area
BA
Unavailable HALDB partition

Returns zero if successful, otherwise nonzero. If DELIMS is unsuccessful, then you can check the DL/I status code in the FMSTATUS REXX variable to determine the cause of failure.