respAddPgmMessages()

This procedure adds all program messages into response.

ParameterTypeDescription
callStackEntry4096AMandatoryCall stack entry. The program name from call stack to which the message was sent.
callStackEntryLen10I 0OptionalLength of call stack entry The length of the value for the Call stack entry parameter. See QMHSNDPM IBM API for more details.
callStackEntryQual20AOptionalCall stack entry qualification. This parameter is used when it is necessary to further identify the call stack entry. The parameter consists of two 10 character parts. The first part is the module name qualifier and the second part is the program name qualifier.

The procedure returns status code. Following codes are supported.

CodeNumeric valueDescription
API_SUCCESS0success
API_PARSE_ERR-32700JSON parsing error
API_INVREQ_ERR-32600Invalid request error
API_METHOD_ERR-32601Method not found error
API_PARAMS_ERR-32602Invalid params error
API_INTERNAL_ERR-32603Internal error. (Not known issue)
API_SECURITY_ERR-32604Security error
API_APPLICATION_ERR-32500Application error. This code is reserved for all kind of errors which are happen outside of Aperio. Means inside application (example: Errors which were issues by DC)
API_SERVER_ERR-32000Server error
API_INDEX_ERR-32501Index error (eg. Pageing error)
API_NO_RECORDS_ERR-32502No records found error (eg. Pageing error)

Examples:

XPERRC = respAddPgmMessages(Z1PGMN);