ERROR - A packed decimal variable used in a DEF was specified in both a DECLARE FUNCTION statement and in the DEF statement. The sizes of the two declarations are different. Make the size declarations match.