7.6 CALL
The CALL command is used to invoke a 3GL program or process or function and optionally pass parameters, data structures and lists into it. The CALL command can also be used in WAM Components to invoke other WEBROUTINEs in the same WAM Component or other WAM Components.
Portability Considerations |
See Parameters PARM and PGM and Specifying File Names in I/O Commands. |
Also See
7.6.2 CALL Comments / Warnings
Optional
CALL --------- PGM ---------- *NONE ----------------------->
pgm name
pgm name . *LIBL
pgm name . library name
>-- PROCESS ------ *NONE ----------------------->
*DIRECT
process name
>-- FUNCTION ----- *MENU ----------------------->
function name
>-- WEBROUTINE --- webroutine name ------------->
*SERVICE service name
*EVALUATE field name
>-- ONENTRY ------ *MAP_NONE ------------------->
*MAP_ALL
*MAP_LOCAL
*MAP_SHARED
>-- ONEXIT ------- *MAP_NONE ------------------->
*MAP_ALL
*MAP_LOCAL
*MAP_SHARED
>-- PARM --------- list of parameters ---------->
| expandable group expression |
------- 20 maximum ------------
>-- EXIT_USED ---- *EXIT ----------------------->
*MENU
*NEXT
*RETURN
label
>-- MENU_USED ---- *MENU ----------------------->
*EXIT
*NEXT
*RETURN
label
>-- NUM_LEN ------ *ALL15 ---------------------->
*DEFINED
>-- PGM_EXCH ----- *NO ------------------------->
*YES
>-- IF_ERROR ----- *ABORT ---------------------->
*NEXT
*RETURN
label
>-- PASS_DS ------ data structure names -------->
| |
------ 20 max -----
>-- PASS_LST ----- working list names -------------|
| |
------ 20 max -----