Change Problem Log Entry (QsxChangeProblemLogEntry) API


  Required Parameter Group:

1 Handle Input Binary(4)
2 Key structures Input Array of Pointers
3 Number of keys Input Binary(4)
4 Error code I/O Char(*)

  Default Public Authority: *EXCLUDE

  Service Program: QSXSRVPL

  Threadsafe: No

The Change Problem Log Entry (QsxChangeProblemLogEntry) API updates an existing problem entry by changing the information. Key 1 (problem log ID) identifies the problem to be changed. Some data in the problem log entry can be changed on a field by field basis while other data can only be changed as a group and some data cannot be changed.


Authorities and Locks

API Public Authority
*USE

Required Parameter Group

Handle
INPUT; BINARY(4)

An identifier that associates the problem log services started with the QsxStartProblemLogServices API.

Key structures
INPUT; ARRAY of POINTERS

An array of pointers to the key structures being passed to the API.

Number of keys
INPUT; BINARY(4)

Number of keys passed to the API.

Error code
I/O; CHAR(*)

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


Format of the Keys

The number of keys used varies depending on the type of problem log entry being changed. You must select the keys applicable to the problem type with which you are working. If the keys provided to the API do not match the requirements for the problem log entry type you are changing, you are notified by the error handling procedures.

For details about the keys that can be used, see Key Groups for Problem Log APIs.


Rules for Key Usage

You can change the problem log data, the status, or both. The problems are categorized into the following types:

1 Machine-detected problem
2 User-perceived hardware or software problem
3 PTF orders
4 User-perceived remote problem
5 Application-detected problem
6 Client machine-detected problem
7 Client user-detected problem
8 User-created general problem

Changing General Data

General data is data that can be changed for any problem type without affecting the status of the problem. Data of this class are:


Changing Problem Status

To change the problem status, specific data is required. The amount of data depends on the current or requested problem log status. Data that requires a status change cannot be added unless key 3 (problem status) is provided. An error is signaled if this occurs.

A problem can be changed to the following statuses:

PREPARED, while displayed as a specific status, is actually an amplifier to the previous status of the problem: OPENED, READY, SENT, ANSWERED or VERIFIED.

The supplemental data needed to move a problem to PREPARED status are:

A problem can be set to PREPARED status by providing the required data keys (if not already provided) and a key 3 (problem status) code of 5.


Keys for Changing Problem Type 1 to Another Status

Problem type 1 (machine-detected problems) requires data from two additional key groups, 1000 and 2000.

Note: When changing status and FRU entries are required, use the Add Problem Log Entry API. To change status in general, you do not need the key group 2000 data.


Keys for Changing Problem Types 2, 4, 5, and 8

Problem types 2 (User-perceived), 4 (User-perceived remote), 5 (Application-detected), and 8 (User-created general) require the following data to achieve the following status:


Keys for Changing Problem Type 3

Problem type 3 (PTF order) requires the following data to achieve the following status:


Keys for Changing Problem Types 6 and 7

Problem type 6 (client machine-detected) and problem type 7 (client user-detected) require the Problem category field in key 1012 be set to 0 (Report) to move to PREPARED status.


Error Messages

Message ID Error Message Text
CPF3C1E E Required parameter &1 omitted.
CPF3C90 E Literal value cannot be changed.
CPF3CF1 E Error code parameter not valid.
CPF3CF2 E Error(s) occurred during running of &1 API.
CPF7AAB E Problem &1 not found.
CPF3C4D D Length &1 for key &2 not valid.
CPF3C82 D Key &1 not valid for API &2.
CPF3C86 D Required key &1 not specified.
CPD7A82 D Value not valid for key &1. (char string)
CPD7A83 D Value not valid for key &1. (integer)
CPD7A87 D Key &1 may be added only once.
CPD7A88 D Incorrect DBCS field format found.
CPD7A8A D Key value &1 is not valid.
CPD7A8B D Length of data not valid.
CPF7A89 E Incorrect handle for this activation.
CPF7A8A E Problem log services not started.
CPF7AA7 E Problem &1 not found.
CPF9821 E Not authorized to program &1 in library &2.
CPF9872 E Program or service program &1 in library &2 ended. Reason code &3.
CPFA320 E Pointer parameter is null.


API introduced: V3R1

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