Control Temporary Storage (QWCCTLTS) API


  Required Parameters:


  Optional Parameter Group 1:


  Optional Parameter Group 2:


  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Control Temporary Storage (QWCCTLTS) API sets a limit on the amount of temporary storage used before a notification is sent.

The limit for the temporary storage in the system is set as a percentage of the total storage capacity of the system ASP. Message CPF090A is sent to QSYSOPR when the limit for the system is reached.

The limit for the temporary storage in a single category is set as an amount in megabytes or gigabytes. Message CPI11AB is sent to QSYSOPR when the limit for a category is reached.

The information set up by this API remains in effect after an initial program load (IPL).

This API should be used only when recommended by your IBM® service representative.


Authorities and Locks

To use this API, you must have service (*SERVICE) special authority.


Required Parameters

Control function
INPUT; CHAR(10)

The control function to be performed. The valid values are:

Control category
INPUT; CHAR(10)

The temporary storage category for the limit. The valid values are:


Optional Parameter Group 1

Limit
INPUT; PACKED DECIMAL(15 5)

The limit to for the temporary storage category. The value is a percent for *SETLMTPCT control function. The value is megabytes for *SETLMT control function. The value is gigabytes for *SETLMTG control function. To set the limit back to the default value (no limit) use a value of 0.


Optional Parameter Group 2

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter. If this parameter is omitted, diagnostic and escape messages are issued to the application.


Usage Notes

The QWTCTLTS API can be called from the Command Entry prompt.

To set the warning limit for all temporary storage on the system to 40 percent of the system ASP you can use this command:

CALL QWCCTLTS PARM(*SETLMTPCT *ALL 40)

To set the warning limit for temporary job structures to 25 megabytes use this command:

CALL QWCCTLTS PARM(*SETLMT *ACTJOB 25)

To remove a warning limit for all temporary storage on the system (and set it back to the default of no warning limit) you can use this command:

CALL QWCCTLTS PARM(*SETLMTPCT *ALL 0)

Error Messages



API introduced: V7R2

[ Back to top | Work Management APIs | APIs by category ]