STRSBS (Start Subsystem)

STRSBS Command syntax diagram

 

Purpose

The Start Subsystem (STRSBS) command starts a subsystem based on the subsystem description specified in the command. Once started, the subsystem is known by the unqualified name of the subsystem description (the subsystem description name without the library name). When the subsystem is started, the system allocates the necessary and available resources (storage, work stations, and job queue) that are specified in the subsystem description.

Storage is allocated to the subsystem according to the storage pool definitions specified in the subsystem description, starting with the lower numbered storage pool definitions. If all the pool definitions cannot be allocated, because the maximum number of storage pools on the system is reached or because insufficient storage is available, messages indicating which pools could not be allocated are sent to the system operator. If storage becomes available later, or if the number of active storage pools is reduced, the available resources are automatically allocated to the subsystem to satisfy its unfulfilled requirements. Any jobs that would normally run in a storage pool that is not allocated are run in the shared storage pool (*BASE).

Allocating Work Stations: Work stations are allocated to the subsystem according to the work station entries in the subsystem description. Each work station whose name (or type, if not specified by name) is contained in one of the subsystem description's work station entries, and whose entry specifies AT(*SIGNON), is allocated to this subsystem unless it is currently signed on to another subsystem. The sign-on prompt is displayed on each work station that is allocated. Work stations that are already signed on in another subsystem remain allocated to that subsystem until the subsystem that allowed the sign-on is ended, or until the user transfers the job to this subsystem. (Messages indicating the names of the work stations that could not be allocated are sent to the system operator.)

If multiple subsystems specify the same work station in their work station entries, each subsystem, as it is started, attempts to allocate that work station. Each successive subsystem allocates that work station unless a user signs on while the work station is allocated to one of the previously started subsystems. When a signed-on work station is signed off, it still remains allocated to the same subsystem until another subsystem is started that specifies that work station. If, however, a work station is varied offline and several active subsystems specify that work station, the subsystem to which the work station is allocated when it is varied online is unpredictable.

Allocating Job Queues: If a job queue is specified in the work entries of the subsystem description, the job queue is allocated to the subsystem. If the job queue does not exist or if it is already allocated to an active subsystem, no job queue is allocated to the subsystem and a message is sent to the system operator. If the job queue later becomes available, it is not automatically allocated to the subsystem. To allocate the job queue to the subsystem, the subsystem must end, then start again.

Restriction: To start a subsystem, the user must have job control (*JOBCTL) special authority.

 

Required Parameters

SBSD
Specifies the qualified name of the subsystem description that defines the operational environment (subsystem) being started.

Note: The IBM-supplied object named QLPINSTALL is not valid on this parameter.

The name of the subsystem description can be qualified by one of the following library values:

*LIBL: All libraries in the job's library list are searched until the first match is found.

*CURLIB: The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.

library-name: Specify the name of the library to be searched.

subsystem-description-name: Specify the name of the subsystem description that defines the subsystem being started.

The name of the subsystem description cannot be the same as the name of a subsystem that is currently active, even though the subsystem descriptions are in different libraries.

Examples for STRSBS

Example 1: Starting a Subsystem

STRSBS  SBSD(QBATCH)

This command starts the batch subsystem named QBATCH.

Example 2: Starting a Subsystem

STRSBS  SBSD(QGPL/TELLER)

This command starts the subsystem that is associated with the TELLER subsystem description in the QGPL library. The subsystem name is TELLER.

Error messages for STRSBS

*ESCAPE Messages

CPF1001
Wait time expired for system response.
CPF1004
Function check occurred during start subsystem.
CPF1010
Subsystem name &1 active.
CPF1011
Start subsystem failed for SBSD &1 in library &2.
CPF1012
No authority to start subsystem.
CPF1013
Subsystem &1 in library &2 not found.
CPF1014
Subsystem &1 not started.
CPF1031
Not authorized to library &1.
CPF1038
No authority to use command.
CPF1049
Cannot allocate subsystem &1 in library &2.
CPF1050
Not enough storage to start subsystem.
CPF1057
Subsystem &1 in library &2 damaged.
CPF1067
Cannot allocate library &1.
CPF1080
Library &1 not found.
CPF1086
Subsystem &1 in &2 allocated to your job.
CPF1099
Subsystem not started because system ending.
CPF3D87
Attempted to use system program QLPCTLIN in QSYS.