The Execute Internal Function (EXCINTFUN) allows you to specify a portion of an action diagram that can be used repeatedly in other functions. You can also use an EXCINTFUN as a user-defined *Notepad function, which can serve as a repository of standardized action diagram constructs that you can easily copy into the action diagrams of other functions.
For more information on user-defined *Notepad functions, see Using NOTEPAD in the chapter "Modifying Action Diagrams."
The EXCINTFUN is implemented as inline source code (or a macro function) within the source code of the calling function. That is, whenever you make a call to this function type, it is embedded in the source code of the calling function at the point where you made the call.
You cannot attach an EXCINTFUN to an access path. When defining this function type specify *NONE for the access path.
You might use the EXCINTFUN to perform a calculation routine that will be used repeatedly within a function or several functions.
Try to encapsulate as much of each action diagram as possible in the EXCINTFUN rather than in native code. This encourages functional normalization and improves maintainability. In addition, it improves the time it takes to load the action diagram of the referencing functions.
The following table shows the parameters available.
|
Parameters |
Usage |
Role |
Default |
Option |
|---|---|---|---|---|
|
Any field |
Any |
- |
- |
O |
The following table shows the function options available.
|
Options |
Default Value |
Other Values |
|---|---|---|
|
Execution location |
W |
S |
|
Generate as subroutine? |
N |
Y |
|
Share subroutine |
M(YSHRSBR) |
N, Y |
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |