GLOBALS

#### Search Results

Search

# GLOBALS

`GLOBALS` [parameter=value ...]

This command is used to set Natural session parameters.

Note
In batch mode, this command is only executable, if parameters are specified. For example, `GLOBALS SM=ON` can be executed in batch mode.

This document covers the following topics:

- GLOBALS Syntax Explanation

- GLOBALS Parameters

- Interaction with SET GLOBALS and Other Statements

## GLOBALS Syntax Explanation

`GLOBALS` | If the `GLOBALS` command is entered without parameters, a screen appears where you can modify the parameter settings.
`parameter` | Parameter settings can be supplied in any order and must be separated by a blank. If more parameters are specified than will fit on one command line, several `GLOBALS` commands must be issued. Example:
    GLOBALS DC=, ID=.
Note Certain session parameters can be modified only using the above mentioned screen, but not via the command line.

## GLOBALS Parameters

The following table contains a list of session parameters that can be specified with the system command `GLOBALS`.

Parameters | Function
--- | ---
`CC` | Error Processing in Batch Mode
`CF` | Character for Terminal Commands
`CO` | Compiler Output
`CPCVERR` | Code Page Conversion Error
`DBSHORT` | Interpretation of Database Short Names
`DC` | Character for Decimal Point Notation
`DO` | Display Order of Output Data
`DU` | Dump Generation
`EJ` | Page Eject
`ENDIAN` | Endian Mode for Compiled Objects
`FS` | Default Format/Length Setting for User-Defined Variables
`GFID` | Global Format IDs
`IA` | Input Assign Character
`ID` | Input Delimiter Character
`IM` | Input Mode
`LE` | Reaction when Limit for Processing Loop Exceeded
`LS` | Line Size
`LT` | Limit for Processing Loops
`ML` | Position of Message Line
`PD` | Size of Page Data Set
`PM` | Print Mode
`PS` | Page Size for Natural Reports
`RQTOUT` | `REQUEST DOCUMENT` Timeout
`SA` | Sound Terminal Alarm
`SF` | Spacing Factor
`SM` | Programming in Structured Mode
`THSEPCH` | Thousands Separator Character
`ZD` | Zero-Division Check
`ZP` | Zero Printing

## Interaction with SET GLOBALS and Other Statements

### Statement SET GLOBALS

The system command `GLOBALS` and the statement `SET GLOBALS` 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.

### Other Statements Influencing the Session Parameter Settings

Some parameter values may be overridden during program execution using the `LIMIT`, `EJECT`, and `FORMAT` statements and by format entries specified in `INPUT`, `DISPLAY`, `PRINT`, and `WRITE` statements.

### On this page

- GLOBALS Syntax Explanation
- GLOBALS Parameters
- Interaction with SET GLOBALS and Other Statements