Hitachi

JP1 Version 11 Job Management: Getting Started (Scripting Language)


2.2 Specifying environment variables

The table below lists and describes the environment variables supported by JP1/Advanced Shell.

Important note

JP1/Advanced Shell sets and references shell and environment variables whose names begin with ADSH. Therefore, do not use a shell variable or an environment variable whose name begins with ADSH for any purpose other than those described in this manual.

Table 2‒6: Environment variables supported by JP1/Advanced Shell

Environment variable name

Information to be specified

Timing of specification when the value is set automatically

Whether a value can be specified

ADSH_ENV

Job environment file name

When the job starts as a custom job

Yes#

ADSH_JOBRC_FATAL

Job return code in the event of a fatal error that interrupts job processing such as syntax errors.

For details about how to specify the environment variable, see (1) ADSH_JOBRC_FATAL environment variable (specifies the return code in the event of an unresumable error in jobs).

(Not specified automatically)

Yes#

AJS_BJEX_STOP

Interface used for forced termination from JP1/AJS. This environment variable must be defined when JP1/Advanced Shell batch jobs are defined in PC or UNIX jobs. Define the environment variable in PC or UNIX job definitions, not in OS settings.

When the job starts as a custom job

Yes (Only TERM is permitted.)

#

If an environment variable is set within a job definition script or an environment file, the value of such an environment variable is valid only for a child job or root job that is started from a job definition script.

For details about environment variables, see the description in Specifying environment variables in the manual JP1/Advanced Shell.

Organization of this section