Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

7.9 CALL

Note
Note: Usage options

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.9.1 CALL Parameters

7.9.2 CALL Comments / Warnings

7.9.3 CALL Examples

Panel
bgColor#ffffcc

                                                                                       Optional 

CALL

No Format
                                                        Optional   CALL

---------

PGM

-------------

*NONE

---------------------

-->                                 pgm name                                 pgm name . *LIBL                                 pgm name . library name              >-- PROCESS

>
                                                     pgm name
                                                    pgm name . *LIBL
                                                    pgm name . library name

                 >-- PROCESS ---------

*NONE

-

---------------------

->                                 *DIRECT                                 process name              >-- FUNCTION

>
                                                   *DIRECT
                                                    process name

                >-- FUNCTION ------

*MENU

----------------------->

                                function name              >-- WEBROUTINE --- webroutine name


                                                   function name

                >-- WEBROUTINE --- webroutine name ------------->

                                *SERVICE service name                                 *EVALUATE field name              >-- ONENTRY


                                                 *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  |                               


                                               |   expandable group expression  |
                                                -------

20

maximum

------------ 

             >--

EXIT_USED

------

*EXIT

----------------------------->

                                *MENU                                 *NEXT                                 *RETURN                                 label              >-- MENU_USED


                                               *MENU
                                               *NEXT
                                               *RETURN
                                               label

             >-- MENU_USED ----

*MENU

-------------------------->

                                *EXIT                                 *NEXT                                 *RETURN                                 label              >-- NUM_LEN


                                               *EXIT
                                               *NEXT
                                               *RETURN
                                               label

             >-- NUM_LEN ------

*ALL15

--------------------------->

                                


                                              *DEFINED

             >--

PGM_EXCH

-----

*NO

----------------------------->

                                *YES


                                              *YES

             >--

IF_ERROR

------

*ABORT

-------------------------->

                                *NEXT                                 *RETURN                                 label              >-- PASS_DS


                                             *NEXT
                                             *RETURN
                                             label

             >-- PASS_DS ------

data

structure

names

--

------>

                                |                   |                                  


                                           |                                  |
                                             ------

20

max

-------

             >--

PASS

 PASS_

LST

LST -----

working list names

 working list names -------------|

                                |                   |                                  


                                           |                                  |
                                             ------

20

max

-------