This example applies to the DEF_BREAK command. Refer also to Producing Reports Using LANSA.
Write an RDML program to read a regional sales file and print details of each record read:
DEF_LINE NAME(#DETAIL) FIELDS(#REGION #PRODES #VALUE)
SELECT FIELDS(#DETAIL) FROM_FILE(SALEHIST)
PRINT LINE(#DETAIL)
ENDSELECT
ENDPRINT