>Binyamin Dissen wrote: > It also states: > > "When the GETMAIN macro returns control to your program and you specified a > conditional request, GPR 15 contains one of the following hexadecimal return > codes:" > > which implies that R15 is not set for unconditional requests.
Actually, it does not imply that at all. It only refers to the case where a conditional request is made. It's a pity that the "Return and Reason Codes" section does not explicitly cover the case for unconditional requests; but the "Output Register Information" section is pretty clear that register 15 contains a return code for RU requests. The manual notes that the CHECKZERO=YES parameter can be specified with RC, RU, VRC or VRU. It further states that "When CHECKZERO=NO is specified or defaulted, the return code for a successful completion is 0. When CHECKZERO=YES is specified, the return code for a successful completion is X'14' if the system has cleared the requested storage to zeroes, and 0 if the system has not cleared the requested storage to zeroes." Since CHECKZERO can be specified with RU, it is evident that there is a return code of 0 or X'14' for a GETMAIN RU. > Either way, RU - ALWAYS - gets storage if it does not abend. Agreed. Allen
