The SETUP section of the program is where you place all of the declarations. Declarations define certain report characteristics and the source and attributes of various report components, such as charts and images. The SETUP section is evaluated when you compile the program, before you run the program. A program doesn't have to have a SETUP section, but it can be useful.

Begin with BEGIN-SETUP and end with END-SETUP.

Use the following commands in the SETUP section:

ALTER-LOCALE Can also appear in a procedure.
ASK Allowed only in a SETUP section.
BEGIN-SQL Can also appear in a procedure. Processed when a runtime file (with .SQT extension) is loaded.
CREATE-ARRAY Can also appear in a procedure.
DECLARE-CHART
DECLARE-IMAGE
DECLARE-LAYOUT
DECLARE-PRINTER
DECLARE-PROCEDURE
DECLARE-REPORT
DECLARE-TOC
DECLARE-VARIABLE Can also appear in a local procedure.
LOAD-LOOKUP Can also appear in a procedure.
USE Sybase only.