The REXX procedure that FM/IMS invokes uses standard TSO/E REXX.
RTRC=GETIMS(USING_VIEW) IF RTRC<>0 THEN DO SETRC(21) EXIT END