CODE

Specify a two-character literal placed at the beginning of each report line. It is useful when writing multiple reports to one file.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

CODE literal

Parameters:

literal A two-character, non-numeric name inserted as the first two bytes of each report record or print line

Comments:

  • The two bytes identifying a literal are included in the logical record size, not in the print line description.
  • If your report has a File Description (FD) in the REPORT IS clause, include a RECORD CONTAINS clause that allows for the two extra bytes the CODE clause needs; the default value of 133 for RECORD CONTAINS does not.

    If your report does not have a File Description, the AMB default record length of 250 includes the extra two bytes the CODE clause needs.

  • If you specify CODE for one report, specify it for all reports in the file.

Examples:

See Sample Programs.