Compiling a Form

The Compile Form option compiles the 4GL form definition file for the selected program or for all programs in a product line or system code. The compiler builds the TranMap file that the user interface uses to process the form. You must compile the Form Definition file before the program can use it.

To compile a form

  1. Log into the appropriate Environment.
    1. If you installed Lawson Core Technology on an IASP, at the IBM i command prompt, type

      SETASPGRP IASPName

    2. At the IBM i command line, type

      CALL LAWENV

    3. Type the name of an Environment and press Enter.
  2. Start a Qshell session.
  3. At the Qshell command line, type

    scrgen ProductLine [SystemCode [ProgramCode...]]

    For example:

    scrgen lawapp9 hr hr01

  4. Check the source file directory for the existence of an error log file ( xxxxx.ERR, where "xxxxx" is the program name, such as GL10).