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
- Requires READ and ADD authority to the library where the description is created.
- Requires ALLOBJ and SECADM special authority to specify a value other than NONE for a system library list entry.
- Requires USE authority to all ASP device descriptions in the ASP group when specifying an ASP group name.
- Only a user with ALLOBJ special authority may specify an ASP group name when the ASP device description does not exist.
Parameters
SBSD
Subsystem description
Names the subsystem description to create and the library where it is stored. This parameter is required.
*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
Library
Library
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.
*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
Storage size
Storage size
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
Size unit of measure
Size unit of measure
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.
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.
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.
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
Library
Library
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.
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.
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.
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.
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.
Generated from os/cl/catalog/CRTSBSD.json and os/cl/help/CRTSBSD.json.