programmer-defined function

A function written in 4GL that can be called in a 4GL program. The developer can write 4GL functions, (defined with the FUNCTION statement), a MAIN program block (defined with the MAIN statement), and reports (defined with the REPORT statement). Collectively these types of functions are often called 4GL program blocks.

See also 4GL function, function, built-in function, built-in operator, MAIN program block, program block, report.