Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Session Maximum (CHGSSNMAX) command is used to dynamically change the maximum number of sessions the local location allows to a mode.
When a change to the maximum number of sessions is made, the remote system is informed and allowed to negotiate for a lower session maximum. The remote system cannot negotiate a session maximum higher than the value specified for the local number of sessions specified. The resulting session maximum value is the current session maximum. Neither system may activate more sessions than the current session maximum.
If the requested session maximum is accepted or negotiated by the remote system, the value requested on this command is stored as the local session maximum; the remote system is not allowed to increase the current session maximum above the value stored as the local session maximum. This new value for the local session is only used the next time a new session maximum needs to be negotiated. The current session maximum, which controls how many sessions can be active between the local and remote location, is not changed if the command fails. If the request to change the session maximum is rejected by the remote system, the command ends abnormally and the local session maximum is changed as follows: If it is increasing, it is changed to the value specified; if it is decreasing, it is not changed.
This command is normally used by the system operator to control the number of sessions that can be active at the same time with a remote location. If the current number of active sessions is greater than the maximum number specified on the command, no new sessions are created until the number of active sessions falls below that specified on the command. If the current number of active sessions is less than the maximum number specified, sessions are not created until jobs requiring them are started. The value created by the systems remains in effect until another Change Session Maximum (CHGSSNMAX) command or an End Mode (ENDMOD) command is run for the same mode, or until all the device descriptions associated with the remote location are varied off.
NOTES:
The APPC Programming book, SC41-5443 has more information on this command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
RMTLOCNAME | Remote location | Communications name | Required, Positional 1 |
MAXSSN | Maximum sessions | 1-512 | Optional |
DEV | Device | Name, *LOC | Optional, Positional 2 |
MODE | Mode | Communications name, *NETATR | Optional, Positional 3 |
LCLLOCNAME | Local location | Communications name, *LOC, *NETATR | Optional |
RMTNETID | Remote network identifier | Communications name, *LOC, *NETATR, *NONE | Optional |
Top |
Top |
Specifies the number of sessions allowed with the remote system. This value represents the desired maximum session number for the specified mode name. It must be less than or equal to the limit for number of sessions defined in the mode description. This value can be negotiated to a lower value by the remote location; therefore, the value specified here is not necessarily the value that is used.
Valid values for this parameter are 1 through 512.
Top |
Specifies the name of the device description used with the remote location.
The possible values are:
Top |
Specifies the name of the mode to be changed.
The possible values are:
Note: SNASVCMG and CPSVCMG are reserved names and cannot be specified.
Top |
Specifies the local location name.
The possible values are:
Top |
Specifies the remote network ID that is used with the remote location.
The possible values are:
Top |
CHGSSNMAX RMTLOCNAME(APPCRLOC) DEV(APPCDEV) MODE(APPC2) MAXSSN(3)
This command changes the maximum number of sessions allowed by remote location APPCRLOC for mode APPC2 to a maximum of three.
Top |
Top |