Specifying Copies and Electronic Overlays

This example shows how to specify different electronic overlays in different subgroups. The electronic overlays you specify are created separately, using a program such as IBM Overlay Generation Language/370, and are stored as resources in the overlay library. No positioning controls are needed in the form definition with an overlay; the overlays are merely named. The overlay contains its own positioning data relative to the physical sheet. A form definition containing two overlays might look like this:

FORMDEF SLSCOM ;
  COPYGROUP SLSCOM ;
    OVERLAY SLSRPT  M1001 ;   /*LOCAL NAME AND USER-ACCESS NAME*/
    OVERLAY M1002 ;           /*USER-ACCESS NAME ONLY          */
    SUBGROUP COPIES 2
             OVERLAY SLSRPT ;
    SUBGROUP COPIES 3
             OVERLAY M1002 ;

The steps to write this form definition are:

  1. Create a copy group.
    1. Write a COPYGROUP command.
    2. Write an OVERLAY command for each overlay.
  2. Create two subgroups by writing two SUBGROUP commands. Each subgroup contains an OVERLAY subcommand naming one of the selected overlays.
    Note: The overlays must be named in each copy group.