VSAM macro return and reason codes

This chapter describes the return codes and reason codes that are generated by the VSAM macros that are used to open and close data sets, manage VSAM control blocks, and issue record management requests.

VSAM sets the return codes in register 15. These return codes are paired with reason codes that are set in the access method control block (ACB) and the request parameter list (RPL). Reason codes that are set in the ACB indicate open or close errors. Reason codes that are set in the RPL indicate record management errors.

This manual lists return codes and reason codes as decimal and hexadecimal values. The decimal value is shown first, followed by the hexadecimal value in parentheses. Format descriptions and examples of each macro are shown in VSAM macro descriptions and examples. Some VSAM reason codes, which are used for diagnostic purposes, are shown in z/OS DFSMSdfp Diagnosis.