A procedure can contain ENTRYs some of which have the RETURNS attribute and some of which do not, but if it is entered at an ENTRY that has the RETURNS attribute, it must be exited with a RETURN statement that does not specify a return value.
The ONCODE associated with this message is 9005.
The ERROR condition is raised.
Correct your program.
IBM0NH