Compiling a Report

The report compiler compiles the 4GL report definition file for a selected report program or for all report programs in a product line or system code. You must compile the report description file before the program can use it.

To compile a report

  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

    rptgen ProductLine [SystemCode [ProgramCode...]]

    For example:

    rptgen lawapp9 hr hr105

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