SED - Argument Passing
Any user written PROC or FUNC may take arguments. The actual number the compiler expects to pass is determined by the first reference to that PROC or FUNC and is checked at run time against the number that are expected by the called item.
To declare arguments in a PROC, it is written as
ARGS arg1, arg2, arg3...
The arg1, arg2, etc. items are local variables into which the argument values are to be transferred when the procedure is called.