The help contains several code examples, and in addition there are numerous samples at
http://www.lotus.com/products/eibu_knowbase.nsf -- follow the
Lotus Connector LotusScript Extension link, then
LotusScript Samples using the LCLSX. Don't worry about getting AS400 specific examples -- the whole point of the Lotus Connectors is to provide a generic interface that lets you use essentially the same code no matter what kind of database you're using.