Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

7.25.3 DEF_LINE Examples

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:

Code Block
DEF_LINE   NAME(#DETAIL) FIELDS(#REGION #PRODES #VALUE)
SELECT     FIELDS(#DETAIL) FROM_FILE(SALEHIST)
PRINT      LINE(#DETAIL)
ENDSELECT
ENDPRINT