Change Service Tools User ID (QSYCHGDS) API


  Required Parameter Group:


  Optional Parameter Group:


  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Change Service tools user ID (QSYCHGDS) API changes the ID name or the password (or both) for service tools user IDs.

Calling this API from a command line may result in a security exposure since the plain text service tools user ID and password may appear in the job log. Therefore, you should avoid calling this API from the command line.


Authorities and Locks

When the requesting service tools user ID is different than the service tools user ID to be changed, the requesting service tools user ID must have the Service Tool user function privilege "Service Tool Security".

When the requesting service tools user ID is the same as the service tools user ID to be changed and the service tools user ID name is to be changed, the requesting service tools user ID must have the Service Tool user function privilege "Service Tool Security".


Required Parameter Group

Requesting service tools user ID
INPUT; CHAR(*)

The requesting service tools user ID. This value is converted to uppercase. If the optional parameter group is not specified, a default of length 8 is used. The requesting service tools user ID parameter should be padded with trailing blank characters if necessary.

Requesting service tools user ID password
INPUT; CHAR(*)

The password for the requesting service tools user ID.

Service tools user ID to be changed
INPUT; CHAR(10)

The service tools user ID to be changed. This value is converted to uppercase. The service tools user ID to be changed parameter should be padded with trailing blank characters. You can use these special values for the service tools user ID to be changed:


New service tools user ID
INPUT; CHAR(*)

The new service tools user ID or *SAME. This value is converted to uppercase. If the optional parameter group is not specified, a default length of 8 is used. The new service tools user ID parameter should be padded with trailing blank characters if necessary.

New service tools user ID password
INPUT; CHAR(*)

The new service tools user ID password or *SAME.

If 128 character, case sensitive passwords are enabled for the service tools user IDs, then *SAME is not allowed.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.



Optional Parameter Group

Length of requesting service tools user ID
INPUT; BINARY(4)

The length, in bytes, of the ID contained in the requesting service tools ID parameter. If the optional parameter group is not specified, a default of 8 is used. The requesting service tools user ID parameter should be padded with trailing blank characters, if necessary, to the size specified by this parameter.

This parameter accepts values from 1 to 10.

Length of requesting service tools user ID password
INPUT; BINARY(4)

The length, in bytes, of the password contained in the requesting service tools user ID password parameter. If the optional parameter group is not specified, a default of 8 is used. The requesting service tools user ID password parameter should be padded with trailing blank characters, if necessary, to the size specified by this parameter.

This parameter accepts values from 1 to 512. If 128 character, case sensitive passwords are not enabled for the service tools user IDs, the password is limited to 8 characters. If 128 character, case sensitive passwords are enabled for the service tools user IDs, then this password may be from 6 to 512 bytes. However, values greater than 128 should only be used if multi-byte characters are specified for the service tools user ID password. The number of characters, as interpreted by the CCSID of the service tools user ID password parameter, cannot exceed 128.

CCSID of requesting service tools user ID password
INPUT; BINARY(4)

The CCSID of the requesting service tools user ID password parameter. If the optional parameter group is not specified, CCSID 37 is used. For a list of valid CCSIDs, see the IBM i globalization topic collection.

The valid values are:


Length of new service tools user ID
INPUT; BINARY(4)

The length, in bytes, of the ID contained in the new service tools user ID parameter. If the optional parameter group is not specified, a default of 8 is used. The new service tools user ID parameter should be padded with trailing blank characters, if necessary, to the size specified by this parameter.

This parameter accepts values from 1 to 10.

Length of new service tools user ID password
INPUT; BINARY(4)

The length, in bytes, of the password contained in the new service tools user ID password parameter. If the optional parameter group is not specified, a default of 8 is used. The new service tools user ID password parameter should be padded with trailing blank characters, if necessary, to the size specified by this parameter.

This parameter accepts values from 6 to 512. If 128 character, case sensitive passwords are not enabled for the service tools user IDs, the password is limited to 8 characters. If 128 character, case sensitive passwords are enabled for the service tools user IDs, then this password may be from 6 to 512 bytes. However, values greater than 128 should only be used if multi-byte characters are specified for the service tools user ID password. The number of characters, as interpreted by the CCSID of the service tools user ID password parameter, cannot exceed 128.

CCSID of new service tools user ID password
INPUT; BINARY(4)

The CCSID of the new service tools user ID password parameter. If the optional parameter group is not specified, CCSID 37 is used. For a list of valid CCSIDs, see the IBM i globalization topic collection.

The valid values are:



Error Messages



API introduced: V4R1

[ Back to top | Security APIs | APIs by category ]