Command reference / sys

CHGSHRPOOL

Change Shared Storage Pool

Sets a shared storage pool's size, maximum active threads, or tuning limits.

Allowed environments: *ALL. Positional parameters: 11.

Parameters

POOL Shared pool

Choose the shared pool to change. General-purpose pools are numbered *SHRPOOL1 through *SHRPOOL60.

Type
*CHAR
Required
Yes
Length
10
Case
Uppercase
*MACHINE
The machine pool used for Licensed Internal Code is changed. Only the size can be changed for the machine pool. This is the same as using the Change System Value (CHGSYSVAL) command to change the QMCHPOOL system value.
*BASE
The base pool is changed. Only the activity level can be changed for the base pool. This is the same as using the CHGSYSVAL command to change the QBASACTLVL system value.
*INTERACT
The shared pool for interactive work is changed.
*SPOOL
The shared pool used for spooled writers is changed.
*SHRPOOLnn
A general-purpose shared pool is changed. There are sixty general-purpose shared pools, identified by special values *SHRPOOL1 to *SHRPOOL60.

SIZE Storage size

Sets the size of the storage pool. This is the amount of main storage that can be used by the pool. A value of at least 256 kilobytes must be specified for the storage size. The second element of this parameter specifies whether the size is expressed in kilobytes or megabytes.

Type
*ELEM
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *NOSTG

*SAME
Keep the current size.
*NOSTG
No storage or activity level is defined for the pool. A pool cannot be changed to *NOSTG if it is being used by an active subsystem or active job or if the pool has reserved storage.
integer
Enter the size of the storage pool. Note: Changes to the size of a pool may require pages to be written to auxiliary storage. The time required for the system to complete a large change may be greater than your default wait time.
*KB
The size is specified in kilobytes (1024 byte units).
*MB
The size is specified in megabytes (1048576 byte units).
Elements in order

Storage size Storage size

Type
*DEC
Required
No
Length
10
Case
Uppercase

Size unit Size unit

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

Allowed values: *KB, *MB

ACTLVL Activity level

Sets the maximum number of threads that can run at the same time in the pool.

Type
*INT4
Required
No
Default
*SAME
Range
0 to 32767
Case
Uppercase

Suggested / special values: *SAME, *DATA

*SAME
Keep the current activity level.
*DATA
No threads can run in the pool. It is only used for data. A pool cannot be changed to or from *DATA if it is being used.
integer
Enter the activity level for the pool.

PAGING Paging option

Sets the paging option associated with the pool. The paging option determines whether the system dynamically adjusts the paging characteristics for the storage pool for optimum performance. Pools with *DATA activity level are not dynamically adjusted by the system.

Type
*CHAR
Required
No
Default
*SAME
Length
6
Case
Uppercase

Allowed values: *SAME, *FIXED, *CALC

*SAME
Keep the current setting.
*FIXED
The system default values are used. The system does not dynamically adjust the paging characteristics for the storage pool.
*CALC
The system dynamically adjusts the paging characteristics for the storage pool to ensure optimum performance.

TEXT Text 'description'

Sets the text that briefly describes the shared pool.

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

Suggested / special values: *SAME, *BLANK

*SAME
Keep the current text.
*BLANK
Leave the description blank.
character-value
Enter no more than 50 characters of text, enclosed in apostrophes.

MINFAULT Minimum page faults

Sets the minimum page faults per second to use as a guideline for this storage pool. This value is used by the system if the QPFRADJ system value is set to 2 or 3 (automatic adjustment). Pools with *DATA activity level are not automatically adjusted by the system.

Type
*DEC
Required
No
Default
*SAME
Length
6, 2 decimals
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
Keep the current setting.
*DFT
The minimum faulting rate guideline is set to the system default value for this pool.
decimal-number
Enter the minimum page faults per second to use for the paging guideline for this pool.

JOBFAULT Page faults per thread

Sets the page faults per second for each active thread to use as a guideline for this storage pool. Each job is comprised of one or more threads. A thread is counted as active when it uses CPU resource. This value is used by the system if the QPFRADJ system value is set to 2 or 3 (automatic adjustment).

Type
*DEC
Required
No
Default
*SAME
Length
6, 2 decimals
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
Keep the current setting.
*DFT
The guideline for the page faults per second for each active thread is set to the system default value for this pool.
decimal-number
Enter the page faults per second for each active thread to use for the paging guideline for this pool.

MAXFAULT Maximum page faults

Sets the maximum page faults per second to use as a guideline for this storage pool. This value is used by the system if the QPFRADJ system value is set to 2 or 3. Pools with *DATA activity level are not automatically adjusted by the system.

Type
*DEC
Required
No
Default
*SAME
Length
6, 2 decimals
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
Keep the current setting.
*DFT
The maximum faulting rate guideline is set to the system default value for this pool.
decimal-number
Enter the maximum page faults per second to use for the paging guideline for this pool.

PTY Priority

Sets the priority of this pool relative to the priority of the other storage pools. The valid range for priority is 1-14, where 1 is the highest priority and 14 is the lowest priority. This value is used by the system if the QPFRADJ system value is set to 2 or 3. Pools with *DATA activity level are not automatically adjusted by the system.

Type
*INT4
Required
No
Default
*SAME
Range
1 to 14
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
Keep the current setting.
*DFT
The storage pool priority is set to the system default value for this pool.
1-14
Enter the priority of the storage pool.

MINPCT Minimum size %

Sets the minimum amount of storage to allocate to this storage pool (as a percentage of total main storage). This value is used by the system if the QPFRADJ system value is set to 2 or 3. Pools with *DATA activity level are not automatically adjusted by the system.

Type
*DEC
Required
No
Default
*SAME
Length
5, 1 decimals
Range
0 to 100
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
Keep the current setting.
*DFT
The minimum pool size is set to the system default value for this pool.
0.0-100.0
Enter a percentage of total main storage to use as a minimum size for this storage pool.

MAXPCT Maximum size %

Sets the maximum amount of storage to allocate to this storage pool (as a percentage of total main storage). The maximum size of a pool is determined by this percentage and the amount of storage allocated to the other active pools. This value is used by the system if the QPFRADJ system value is set to 2 or 3.

Type
*DEC
Required
No
Default
*SAME
Length
5, 1 decimals
Range
0 to 100
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
Keep the current setting.
*DFT
The maximum pool size is set to the system default value for this pool.
0.0-100.0
Enter a percentage of total main storage to use as a maximum size for this storage pool.

Examples

CHGSHRPOOL POOL(*INTERACT) SIZE(4200) ACTLVL(*SAME) PAGING(*SAME)

Changes the size of the interactive pool to 4200 kilobytes. The activity level and paging option remain the same.

CHGSHRPOOL POOL(*SHRPOOL5) SIZE(80000) ACTLVL(*DATA) TEXT('Data pool for LINUX1 NWSD')

Changes Shared Pool 5 into a data pool with a size of 80000 kilobytes. The activity level will prevent any jobs from running in the pool.

IBM command documentation

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