Command reference / job

CRTSBSD

Create Subsystem Description

Creates a subsystem description that defines the operational attributes of a subsystem. After it is created, commands can add, change, and remove work entries and routing entries in it.

Allowed environments: *ALL. Positional parameters: 3.

Restrictions

Parameters

SBSD Subsystem description

Names the subsystem description to create and the library where it is stored. This parameter is required.

Type
*QUAL
Required
Yes
Case
Uppercase
*CURLIB
Uses the current library of the thread, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Subsystem description Subsystem description

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*CURLIB
Length
10
Case
Uppercase

Suggested / special values: *CURLIB

POOLS Storage pools

Defines up to 10 storage pools for the subsystem. Each entry gives a pool identifier (1-10), a storage size, an activity level, and a size unit. This parameter is required.

Type
*ELEM
Required
Yes
List limit
10
Case
Uppercase
*BASE
The base system pool, which can be shared with other subsystems. Its size and activity level come from the QBASPOOL and QBASACTLVL system values.
*NOSTG
No storage or activity level is assigned, so the pool is inactive.
*INTERACT
The shared pool for interactive work, sized with CHGSHRPOOL.
*SPOOL
The shared pool for spooled writers, sized with CHGSHRPOOL.
*SHRPOOLnn
General-purpose shared pools 1 through 60, sized with CHGSHRPOOL.
*KB
The storage size is in kilobytes.
*MB
The storage size is in megabytes.
Elements in order

Pool identifier Pool identifier

Type
*INT4
Required
No
Range
1 to 10
Case
Uppercase

Storage size Storage size

Type
*INT4
Required
No
Case
Uppercase

Suggested / special values: *BASE, *NOSTG, *INTERACT, *SPOOL, *SHRPOOL1, *SHRPOOL2, *SHRPOOL3, *SHRPOOL4, *SHRPOOL5, *SHRPOOL6, *SHRPOOL7, *SHRPOOL8, *SHRPOOL9, *SHRPOOL10, *SHRPOOL11, *SHRPOOL12, *SHRPOOL13, *SHRPOOL14, *SHRPOOL15, *SHRPOOL16, *SHRPOOL17, *SHRPOOL18, *SHRPOOL19, *SHRPOOL20, *SHRPOOL21, *SHRPOOL22, *SHRPOOL23, *SHRPOOL24, *SHRPOOL25, *SHRPOOL26, *SHRPOOL27, *SHRPOOL28, *SHRPOOL29, *SHRPOOL30, *SHRPOOL31, *SHRPOOL32, *SHRPOOL33, *SHRPOOL34, *SHRPOOL35, *SHRPOOL36, *SHRPOOL37, *SHRPOOL38, *SHRPOOL39, *SHRPOOL40, *SHRPOOL41, *SHRPOOL42, *SHRPOOL43, *SHRPOOL44, *SHRPOOL45, *SHRPOOL46, *SHRPOOL47, *SHRPOOL48, *SHRPOOL49, *SHRPOOL50, *SHRPOOL51, *SHRPOOL52, *SHRPOOL53, *SHRPOOL54, *SHRPOOL55, *SHRPOOL56, *SHRPOOL57, *SHRPOOL58, *SHRPOOL59, *SHRPOOL60

Activity level Activity level

Type
*INT4
Required
No
Case
Uppercase

Size unit of measure Size unit of measure

Type
*CHAR
Required
No
Default
*KB
Length
3
Case
Uppercase

Allowed values: *KB, *MB

MAXJOBS Maximum jobs

Sets how many jobs (0-32000) can be active at the same time in the subsystem. Jobs waiting on the job queue or already finished are not counted.

Type
*INT4
Required
No
Default
*NOMAX
Range
0 to 32000
Case
Uppercase

Suggested / special values: *NOMAX

*NOMAX
The subsystem has no maximum number of jobs.

TEXT Text 'description'

Briefly describes the object, using up to 50 characters enclosed in apostrophes.

Type
*CHAR
Required
No
Default
*BLANK
Length
50
Case
Uppercase

Suggested / special values: *BLANK

*BLANK
No text is specified.

SGNDSPF Sign-on display file

Names the display file used for sign-on screens at workstations allocated to the subsystem. It must contain a record format named SIGNON. A change takes effect the next time the subsystem starts.

Type
*QUAL
Required
No
Default
*QDSIGNON
Case
Uppercase

Suggested / special values: *QDSIGNON

*QDSIGNON
Uses the QDSIGNON sign-on display file in library QSYS.
*LIBL
Searches all libraries in the thread's library list for the file.
*CURLIB
Uses the current library of the thread, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Sign-on display file Sign-on display file

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

SYSLIBLE Subsystem library

Names a library placed ahead of other libraries in the system portion of the library list, such as a secondary language library.

Type
*NAME
Required
No
Default
*NONE
Length
10
Case
Uppercase

Suggested / special values: *NONE

*NONE
The system library list is not changed.

AUT Authority

Sets the authority given to users who have no specific authority to the object, are not on an authorization list, and whose group profiles have no specific authority.

Type
*NAME
Required
No
Default
*LIBCRTAUT
Length
10
Case
Uppercase

Suggested / special values: *LIBCRTAUT, *CHANGE, *ALL, *USE, *EXCLUDE

*LIBCRTAUT
Uses the CRTAUT value of the library where the object is created.
*CHANGE
All operations except those limited to the owner or to OBJEXIST and OBJMGT authority.
*ALL
All operations except those limited to AUTLMGT authority, including changing ownership.
*USE
Basic operations such as displaying contents, but no changes.
*EXCLUDE
The user cannot access the object.

ASPGRP ASP group

Names an ASP group to include in the library name space of the subsystem monitor job. The ASP group must be varied on and available before the subsystem starts.

Type
*NAME
Required
No
Default
*NONE
Length
10
Case
Uppercase

Suggested / special values: *NONE

*NONE
The library name space of the subsystem monitor job includes no ASP group.

WLCGRP Workload group

Names a workload group to use for jobs in the subsystem. It can be changed while the subsystem is active, and the change applies to new jobs only.

Type
*NAME
Required
No
Default
*NONE
Length
10
Case
Uppercase

Suggested / special values: *NONE

*NONE
No workload group is used for jobs in the subsystem.

Examples

CRTSBSD SBSD(BAKER) POOLS((1 *BASE) (2 2000 4)) SGNDSPF(*LIBL/NEWSGNON) TEXT('Subsystem for running Baker Department jobs')

Creates subsystem BAKER in the current library. Pool 1 shares the base pool and pool 2 has 2000K with an activity level of 4. Sign-on screens use NEWSGNON found in the user's library list, and the subsystem gets a text description.

CRTSBSD SBSD(MEDLIB/MEDICAL) POOLS((1 1500 2) (2 *BASE) (3 *NOSTG)) MAXJOBS(5) TEXT('Medical files inquiry and update')

Creates subsystem MEDICAL in library MEDLIB with three pools: pool 1 at 1500K with activity level 2, pool 2 sharing the base pool, and pool 3 inactive with no storage. Up to five jobs can be active at once.

IBM command documentation

Generated from os/cl/catalog/CRTSBSD.json and os/cl/help/CRTSBSD.json.