SET GLOBALS

SET GLOBALS {parameter=value}     

This document covers the following topics:

For an explanation of the symbols used in the syntax diagram, see Syntax Symbols.


SET GLOBALS Usage

The SET GLOBALS statement is used to set values for session parameters.

The parameters are evaluated either when the program that contains the SET GLOBALS statement is compiled, or when it is executed; this depends on the individual parameters.

The parameter settings specified with SET GLOBALS remain in effect until the end of the Natural session, unless they are overridden with a subsequent SET GLOBALS statement or GLOBALS system command. The statement SET GLOBALS and the system command GLOBALS offer the same parameters for modification. They can both be used in the same Natural session. Parameter values specified with a GLOBALS command remain in effect until they are overridden by a new GLOBALS command or SET GLOBALS statement, the session is terminated, or you log on to another library.

SET GLOBALS Syntax Description

Syntax Element Description
parameter=value
Parameter Specification(s):

In place of parameter, specify the name of the parameter to be set. For a list of possible parameters, see Parameters below.

If you specify multiple parameters, you have to separate them from one another by one or more blanks. The parameters can be specified in any order; see also Example.

In place of value, specify a valid parameter value. For information on valid parameter values, see the descriptions of the individual parameters listed below.

SET GLOBALS Parameters

Parameters that can be specified with the SET GLOBALS statement Evaluation (R = at runtime, C = at compilation)
CC Conditional Program Execution R
CF Character for Terminal Commands R
CO Compiler Output R
CPCVERR Code Page Conversion Error R
DC Character for Decimal Point Notation R
DFOUT Date Format for Output R
DFSTACK Date Format for Stack R
DFTITLE Date Format in Default Page Title R
DO Display Order of Output Data R
DU Dump Generation R
EJ Page Eject R
FCDP Filler Character for Dynamically Protected Fields R
FS Format Specification R
IA INPUT Assign Character R
ID INPUT Delimiter Character R
IM INPUT Mode R
LE Limit Error Processing C
LS Line Size RC
LT Limit of Records Read R
OPF Overwriting of Protected Fields by Helproutines R
PD NATPAGE Page Data Set R
PM Print Mode C
PS Page Size RC
REINP Internal REINPUT for Invalid Data R
SA Sound Terminal Alarm R
SF Spacing Factor C
WH Wait for Record in Hold Status R
ZD Zero Division Check R
ZP Zero Printing RC

The individual session parameters are described in the Parameter Reference.

SET GLOBALS Example

In the example below, the SET GLOBALS statement is used to set the maximum number of characters permitted per line to 74 and to limit the number of database records that can be read in processing loops within a Natural program to 5000.

SET GLOBALS LS=74 LT=5000
...