The status-code is described in this manual as being acquired by use of the RETURNING clause. In fact, RETURNING can be omitted. When RETURNING is omitted, status-code can be acquired from the PROGRAM-STATUS special register.
CBL routines under UNIX do not support the RETURNING clause.