Using Input and Output Parameters

Business functions frequently return error codes and pointers. The input and output parameters in the business function data structure should be named as follows:

Input and Output Parameter

Description

cReturnPointer

When allocating memory and returning GENLNG.

cErrorCode

Based on cCallType, cErrorCode returns a 1 when it fails or a 0 when it succeeds.

cSuppressErrorMessage

If the value is 1, do not display error message using jdeErrorSet(...). If the value is 0, display the error.

szErrorMessageId

If an error occurs, return an error message ID (value). Otherwise, return four spaces.