BEGIN-SETUP

Function

Begins a SETUP section. This section is optional, but if included, it is processed prior to BEGIN-PROGRAM, BEGIN-HEADING, and BEGIN-FOOTING.

Syntax

BEGIN-SETUP
END-SETUP

Description

SETUP should be the first section in the program. It contains commands that determine overall program characteristics. The commands used in SETUP cannot be used elsewhere unless specified. SETUP can include the following commands:

ASK

BEGIN-SQL (can also be used in BEGIN‑PROCEDURE.)

CREATE-ARRAY (can also be used in other Production Reporting programs sections)

DECLARE-CHART

DECLARE-IMAGE

DECLARE-LAYOUT

DECLARE-PRINTER

DECLARE-PROCEDURE

DECLARE-REPORT

DECLARE-TOC

DECLARE-VARIABLE (can also be used in LOCAL)

LOAD-LOOKUP (can also be used in the other Production Reporting program sections)

USE (Sybase and ODBC only)

Examples

begin-setup
  declare-layout customer_list
    paper-size=(8.5, 11)
    left-margin=1.0
    right-margin=1.0
  end-declare
end-setup

See Also

ASK, BEGIN-SQL, CREATE-ARRAY, LOAD‑LOOKUP , and USE