There are three main types of functions... DEF FUNC X,Y ... END ...has no return values. Doesn't have parenthesis. DEF FUNC(X,Y) ... RETURN A END ...has a single return value. Has parenthesis. DEF FUNC X,Y OUT A,B ... END ...has multiple return values. Doesn't have parenthesis, but haves OUT.