ENVIRONSCRIPT

Description

Optionally specifies the name of an environment-related script.

This common session parameter is applicable to these control statements: SYSTEM (see SYSTEM statement), PROFILE (see PROFILE statement), USER (see USER statement), TERMINAL (see TERMINAL statement), and APPL (see APPL statement).

Format

ENVIRONSCript scriptname

Usage

The script is invoked after the INITSCRIPT and before the STARTSCRIPT and is designed to deal with messages issued by the type of environment in which the session is starting.

This means that all application-specific commands and messages can be handled in the STARTSCRIPT, and an ENVIRONSCRIPT common to several applications can precede it.

Scripts are generated using the SCRIPT statement described in the Panels, Scripts and Variables manual. The scriptname specified on the ENVIRONSCRIPT parameter must appear on a SCRIPT statement.

See also STOPINH and STOP_INHERIT keywords.

Parent topic:

Related topics: