Environment Variables
- Last UpdatedJan 31, 2023
- 1 minute read
The general user defined rules are stored in an object residing in SB_OGDB. Its name is __SBH_AUTOPOS_CTRL__. This object is created by inithull (see Hull / initialization / initialization Utility Program / Naming / Autoposition Set-Up). To enable the autopos function the environment variable SB_POSNO_SETS has to be set.
Normally a new posno is picked as the number following the last used number of the current series. By setting of the environment variable SBH_POSNO_INSERT autopos is told to look for the first free number, that means, any holes in the numbering will be filled out.
It is possible to give a prefix and a suffix for a position number, se below. To enable this option the environment variable SBH_AN_POSNO has to be set.
In case of alpha-numerical position numbers it is not possible to use "general purpose strings" because these occupy the same space as the prefix and suffix of the alpha-numerical position numbers.