MFPLI00136S A reference to the function "entry-name" would return a STRUCTURE or an array value but the returns type of the function was not declared with the TYPE attribute.
A function can be declared to return an aggregate value only by using the TYPE attribute in the RETURNS option.