DID defined functions

With the DID defined functions, you perform different actions on a host system.

Syntax

did-defined-function-definition ::=
DEFINE_DID_FUNCTION
NAME function-name  
function-attribute-sequence
[ function-parameters ]
function-result 
END_DEFINE_DID_FUNCTION
function-attribute-sequence ::=
execute-function
[ local-connection-function-attributes ]
[ function-codepage ]
execute-function ::=
EXECUTE_FUNCTION retrieval-name 
local-connection-function-attributes ::=
function-calling-convention
function-calling-convention ::=
CALLING_CONVENTIONS calling-convention 
function-codepage ::=
CODEPAGE codepage 
function-parameters ::=
DEFINE_PARAMETERS formal-parameter-sequence 
END_DEFINE_PARAMETERS
formal-parameter-sequence ::=
field-sequence 
function-result ::=
FUNCTION_RESULT field-def 

Example

DEFINE_DID_FUNCTION
	NAME Total_amount_customer
	EXECUTE_FUNCTION ... (* *)
	DEFINE_PARAMETERS
		...
		(*Add the parameter definitions here*)
		...
	END_DEFINE_PARAMETERS
	FUNCTION_RESULT ... (* *)
END_DEFINE_DID_FUNCTION