Sign in

docs RPG Reference

Free-Form Specification

Free-Form Specification

The rules for continuation on a free-form calculation specification are:

  • The free-form line can be continued on the next line. The statement continues until a semicolon is encountered.

    Example

      /FREE
                 time = hours * num_employees
                          + overtime_saved;
      /END-FREE
  • A continuation character is not used to continue a statement on a subsequent line unless a name or a literal is being continued. See Continuation Rules for more information about continuing names and literals.

  • Continuation is not allowed for numeric literals. Numeric literals must be specified on a single line in free-form.