Procedures are defined using the keyword
PROC, followed by the new procedure's name (starting with a lowercase letter), a description of the parameters it takes (in parentheses), a series of lines forming the code of the procedure and then the keyword
Look at the example program again to identify the various parts.
See 1.1.1 The code.
Go to the Next or Previous section, the Detailed Contents, or the Amiga E Encyclopedia.