CALL {CLIENT} Program-Name{IN THREAD}[ HANDLE IN Handle-1 ]{VALUE }[ {RETURNING} INTO Return-Val ]{GIVING }[ ON {EXCEPTION} Statement-1]{OVERFLOW }{OVERFLOW }[END-CALL]
CALL RUN Program-Name{VALUE }[ {RETURNING} INTO Return-Val ]{GIVING }[ ON {EXCEPTION} Statement-1]{OVERFLOW }{OVERFLOW }[END-CALL]
CALL PROGRAM Program-Name{VALUE }[ {RETURNING} INTO Return-Val ]{GIVING }[ ON {EXCEPTION} Statement-1]{OVERFLOW }{OVERFLOW }[END-CALL]NOTE - The first argument corresponds to the first formal parameter, the second to the second, and the nth to the nth.
7.
12. The program identified by Program-Name is searched among the paths specified by the iscobol.code_prefix setting. If the code-prefix is not set, then the program is searched in the Classpath.
13. Extensions in Program-Name are automatically stripped by the runtime.
14. Paths in Program-Name are resolved only if the program is searched in the code-prefix.
F. the runtime decorates the subroutine name in a shared library name (e.g. foo may become foo.dll or libfoo.so, depending on the O.S.) and tries to load it. If the library is successfully loaded, then the runtime looks for a function with the same name (foo), otherwiseWhen a program is called asynchronously, the runtime looks for it only locally ignoring iscobol.remote.code_prefix.
CALL "/lib/foo.a(member.o)"
CALL "foo.dll/0"
CALL "foo.dll/1"The choosen convention will be adopted by the runtime when calling the functions stored in the loaded DLL library, regardless of the iscobol.dll_convention setting.
1. CALL PROGRAM works as the CHAIN statement. It causes the current run unit to terminate and initiates a new run unit, but in this case USING parameters are passed to data items specified in the Linkage Section.A program may directly or indirectly call itself. Such a CALL statement is considered a recursive call. By default, isCOBOL shares the program data with all recursive calls. Set iscobol.recursion_data_global (boolean) * to false in order to make isCOBOL create a new copy of data for each instance of the program.
working-storage section.procedure division.
| Copyright (c) 2017 Veryant |
| Contact us |
|
Please share your comments on this manual or on any Veryant product documentation with the email button at the top left |