SET GLOBALS
parameter=value
|
This document covers the following topics:
For an explanation of the symbols used in the syntax diagram, see Syntax Symbols.
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.
A SET GLOBALS
statement in a subordinate program (that
is, a subroutine, subprogram, or program invoked with
FETCH RETURN
) only applies
until control is returned from the subordinate program to the invoking object;
then the parameter values set for the invoking object apply again.
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 Example.
The individual session parameters are described in the Parameter Reference.
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 ...