This is an old revision of the document!
The obvious way to create code is to just type it in but there are also some features in the procedure editor that will help.