Create Problem Log Entry (QsxCreateProblemLogEntry) API


  Required Parameter Group:

1 Handle Input Binary(4)
2 Problem log ID Output Char(40)
3 Key structures Input Array of Pointers
4 Number of keys Input Binary(4)
5 Error Code I/O Char(*)

  Service Program Name: QSXSRVPL

  Default Public Authority: *USE

  Threadsafe: No

The Create Problem Log Entry (QsxCreateProblemLogEntry) API creates a problem log entry and adds the information provided to the problem log files using keys. Key 1 (problem log ID) is returned to the user that is required for other API operations.

The API allows a problem to be created with a status of OPENED, READY, or PREPARED. The difference to the user is that the amount of data increases as the problem goes from OPENED to PREPARED.

The types of problems that may be created are:

The keys provided to create a problem are checked for validity and applicability to the problem log entry in two ways:

The fields are checked to verify that they are not null. Some keys allow the user to control them (key control). Keys without "key control" support require all fields to be filled. Fields not flagged are ignored.(The existence of the data is verified; NOT whether or not the data is valid. The problem log APIs do not check the validity of the data.) Operations that are unsupported or not valid, such as creating a problem in SENT status or not providing all dependent keys, result in a diagnostic message for each infraction found and an exception or an error notification defining it.

The key fields are checked before the problem log entry is created and an error is signalled if any required key fields are null.

If the maximum number of problem log entries has been reached for this particular date (99999), CPF392F E is signaled.


Authorities and Locks

API Public Authority
*USE

Required Parameter Group

Handle
INPUT; BINARY(4)

An identifier that associates the problem log services started by the Start Problem Log Services API.

Key 1 (problem log ID)
OUTPUT: CHAR(40)

This parameter contains the problem log identifier after the problem is created. If this parameter is omitted, no problem log ID is returned.

Key structures
INPUT; ARRAY of POINTERS

An array of pointers that has the address of each key that contains data to be written into the problem log. The number of pointers passed in the array must equal the value passed by parameter 4, Number of keys.

Number of keys
INPUT; BINARY(4)

Defines the number of keys that are being 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

See Key Groups for Problem Log APIs for a description of the keys.


Rules for Key Usage

To create a problem log entry, specific data is required. The amount of data varies depending on the status of the problem log. This section defines the data required for each problem type for statuses OPENED and READY. Problems in OPENED or READY status may be amplified with the status of PREPARED. The supplemental data required for this is defined once and is applicable to either OPENED or READY.


General Keys For Problem Log Entry Data

The minimum key data for all problems types is:

In addition, the following information is needed based on the problem type.

Keys for Creating Problem Type 1

Machine detected problems (problem type 1) use the following keys:

Data for OPENED status are:

Post analysis data must be added to a machine detected problem to achieve READY status. This data is in addition to the data added to achieve OPENED status. Data for READY status are:


Keys for Creating Problem Type 2

User-perceived hardware or software problems (problem type 2) can be created in READY and READY - PREPARED status only. These problems require data similar to machine-detected problems (problem type 1) with the following exceptions:


Keys for Creating Problem Type 3

PTF orders (problem type 3) are created in READY and READY - PREPARED status only and use the following:


Keys for Creating Problem Type 4

User-perceived remote hardware or software problems (problem type 4) can be created in READY and READY - PREPARED status only. These problems require data similar to machine-detected problems (problem type 1) with the following exceptions:


Keys for Creating Problem Type 5

Application detected problems (problem type 5) are used to enter problems automatically detected during the execution of a program. They can be created in READY and PREPARED status only. These problems require data similar to machine-detected problems (problem type 1) with the following exceptions:


Keys for Creating Problem Types 6 and 7

Client machine-detected (problem type 6) and user-created (problem type 7) problems are used to create problem log entries for an attached client. These problems are generated in the READY status. The data requirements are:


Keys for Creating Problem Type 8

User-created general problems (problem type 8) are used to add data of a general nature, that is not applicable to the types already defined. The entry can be created in READY and READY - PREPARED status only. The data requirements are:


Data for PREPARED Status

The supplemental data needed to move a problem from OPENED or READY status to PREPARED status are:


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 ]