Refer to
Producing Reports Using LANSA
.