jBASE Initialization

This section explains the jBASE initialisation process and lists the environment variables that cannot be imported again after this process..

Some environment variables can only be set before jBASE initialization. jBASE initialization occurs when the first jBASE program is executed for a particular PORT.

The jBASE initialization process reads the environment entries looking for possible variables required by jBASE. These environment variables continue to be valid as long as the PORT is still active. Some environment variables can be changed by subsequent program execution. The state of these variables is imported back into the local environment after program execution.

For example,

  • T-ATT requires a PORT against which it saves the tape device assignment
  • .SP-ASSIGN requires a PORT with which to save assignment status for print jobs
  • READNEXT in a program after SELECT/GET-LIST
  • With jBASE 4.1, all programs are executed in the same process unless explicitly executed through the chars(255) *.k construct.

UNIX

Windows

jBASE initialization on UNIX is usually performed in the .profile.

jBASE initialization on Windows usually occurs when the first jBASE program executes.

Initial Environment Variables

Variables cannot be imported again after jBASE initialization.

Variable

Description

PATH

Pathnames of executables

HOME

Pathname of user home directory

LD_LIBRARY_PATH

Pathnames of system libraries (UNIX only)

LIBPATH

Pathnames of system libraries (AIX only)

SHLIB_PATH

Pathnames of system libraries (HPUX only)

LANG

Language type (UNIX only)

LC_ALL

Locale (Unix only)

TZ

Timezone (Unix only)

TERM

Specifies terminal type as per terminfo database

TERMINFO

Specifies directory for terminal settings

JBCPORTNO

Forced Port number for use by user. (Usually allocated)

JBCLOGNAME

User name to use in-place of login id

JBCGLOBALDIR

Pathname of jBASE global configuration directory

JBCRELEASEDIR

Pathname of jBASE release directory

JBCEMULATE

Emulation to be used for this user

JEDIFILEPATH

Directory Paths of application files location

JEDIFILENAME_MD

Pathname of file to be used for MD entries

JEDIFILENAME_SYSTEM

Pathname of file to be used for SYSTEM entries

jBASE Programs

The following jBASE BASIC functions can be used to manipulate environment variables.

  • PUTENV (For example, IF PUTENV (envar=x) THEN ELSE NULL)
  • GETENV (For example, IF GETENV (envar) THEN ELSE NULL)

Copyright © 2020- Temenos Headquarters SA

Published on :
Wednesday, October 12, 2022 6:56:56 PM IST

Feedback
x