CLOSE return codes

When your program receives control after it has issued a CLOSE macro, a return code in register 15 indicates whether all data sets were closed successfully.

The CLOSE return codes are:

Return Code (15) Meaning
0(X'0') All data sets were closed successfully.
4(X'4') At least one data set (VSAM or non-VSAM) was not closed successfully.