FUNCTION fn-MonthName RETURNS CHARACTER
(INPUT ip-MonthNumber AS INTEGER):
DEFINE VARIABLE lv-Months as CHARACTER NO-UNDO INITIAL "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".
IF ip-MonthNumber LT 1 OR ip-MonthNumber GT 12 THEN
RETURN "".
RETURN ENTRY(ip-MonthNumber,lv-Months).
END.