BEGIN-SETUP

Syntax

BEGIN-SETUP END-SETUP

Description

Begins a SETUP section. This optional section is processed prior to the BEGIN-PROGRAM, BEGIN-HEADING, and BEGIN-FOOTING sections.

The SETUP section should be the first section in the program.

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

ASK
BEGIN-SQL

(The BEGIN-SQL command can also be used in BEGIN-PROCEDURE paragraphs.)

CREATE-ARRAY

(The CREATE-ARRAY command can also be used in the other sections of an SQR program.)

DECLARE-CHART
DECLARE-IMAGE
DECLARE-LAYOUT
DECLARE-PRINTER
DECLARE-PROCEDURE
DECLARE-REPORT
DECLARE-VARIABLE

(The DECLARE-VARIABLE command can also be used in LOCAL procedures.)

DECLARE-TOC
LOAD-LOOKUP

(The LOAD-LOOKUP command can also be used in the other sections of an SQR program.)

USE

(Microsoft SQL Server only.)

Example

The following example illustrates the BEGIN-SETUP command:

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

See ASK, BEGIN-SQL, CREATE-ARRAY, LOAD-LOOKUP , USE