7.120 SUBMIT

Note: Usage options

The SUBMIT command is used to submit a call to a program to batch, to a process/function to batch or to start a Form if executing on Windows.

Optionally parameters may be passed to the program or the LANSA process/function.

If the submitted call is to a process/function or a Form it is also possible to exchange information with it using the exchange list. Refer to the EXCHANGE command for more details of the exchange list and how it is used.

Portability Considerations

Refer to parameters: JOBD , JOBQ , PARM , PGM and OUTQ and Specifying File Names in I/O Commands.

Also See

7.120.1 SUBMIT Parameters

7.120.2 SUBMIT Comments / Warnings

7.120.3 SUBMIT Examples

                                                         Optional

 

  SUBMIT ------- PGM ---------- *NONE ----------------------->

                                pgm name . *LIBL

                                pgm name . library name

 

             >-- PROCESS ------ *NONE ----------------------->

                                process or Form name

 

             >-- FUNCTION ----- *FIRST ---------------------->

                                function name or *FORM if executing a Form

 

             >-- PARM --------- list of parameters ---------->

                             | expandable group expression |

                              --------- 20 maximum --------

 

             >-- EXCHANGE ----- field name ------------------>

                           |expandable group expression |

                           |                            |

                            --------- 100 max ----------

 

             >-- JOB ---------- *PGMPRO --------------------->

                                job name

 

            >--- JOBD --------- QBATCH . *LIBL -------------->

                                *USRPRF

                                job description . *LIBL

                                job description . library name

 

            >--- JOBQ --------- *JOBD ----------------------->

                                job queue . *LIBL

                                job queue . library name

 

            >--- OUTQ --------- *JOBD -----------------------|

                                *CURRENT

                                *USRPRF

                                *DEV

                                output queue . *LIBL

                                output queue . library name