An installation can generate a user-defined function by following the instructions listed below in any order:
Processing logic for several functions can be included in one processing program module, thereby reducing the number of modules that must be loaded at runtime. Each function is distinguished by a unique function number. The function number is defined in the model XDE module by the FUNCNBR parameter of the #EFUNMOD TYPE=HDR macro. At runtime, the function number is contained in the XDEUFUNC field of the function XDE, and can be used by the processing program module to branch to the appropriate processing program.
Note: A built-in function that supports entry of optional parameters must be able to determine at execution time whether the optional parameters have been entered. To do this, the built-in function must perform a runtime check of the XDE/VXDE for each such parameter.
If an optional parameter is omitted, the runtime system passes a dummy operand VDE/VXDE to the built-in function for the omitted parameter. The dummy XDE/VXDE for the parameter has the following characteristics, for which a built-in function can test:
|
Copyright © 2014 CA.
All rights reserved.
|
|