Versions Compared

Key

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

7.120.1 SUBMIT Parameters

EXCHANGE

FUNCTION

JOB

JOBD

JOBQ

OUTQ

PARM

PGM

PROCESS


Anchor
PGM
PGM
PGM

Specifies the name of the program which is to be invoked in batch. This parameter is a qualified name. Either a program name or a process name (but not both) must be specified on this command. If required the library in which the program resides can also be specified. If no library name is specified, library *LIBL is assumed which indicates the execution time library list of the batch job should be searched to find the program.

Portability Considerations

The submit of 3GL programs is only supported on IBM i for compatability with existing RDML Code. As such, only RDML fields are supported in the PARM parameter that may be used for the submit of 3GL programs.

Not supported in the current version of Visual LANSA but will be supported in a future release. A build warning will be generated if used and an error will occur at execution time. Code using this facility can be made conditional so that it is not executed in this environment.

Anchor
PROCESS
PROCESS
PROCESS

Specifies the name of the LANSA process or Form that is to be invoked. Either the PGM parameter or the PROCESS parameter (but not both) must be specified.

Portability Considerations

A Form can only be executed on Windows.

Anchor
FUNCTION
FUNCTION
FUNCTION

Optionally specifies the function within the nominated process that should be invoked in batch. If this parameter is not specified a default value of *FIRST is assumed that indicates that the first function (alphabetically) associated with the nominated process should be invoked.

When a Form is specified for the PROCESS parameter, this value must be *FORM.

Anchor
PARM
PARM
PARM

Is optional, and if specified defines a list of parameters which are to be passed to the batch program or process. The parameters must correspond in number and type to those expected by the program or process. This is not checked by LANSA.

...

The passing of parameters to a process is not recommended. Use the exchange list instead as a more flexible means of passing information to the batch process. Refer to the EXCHANGE parameter of this command and to the EXCHANGE command in this guide for more details of the exchange list and exchange list processing.

Portability Considerations

Not supported in the current release of Visual LANSA and not expected to be in future releases.

Anchor
EXCHANGE
EXCHANGE
EXCHANGE

Optionally specifies the name of the field(s) whose value(s) are to be exchanged, or the name of a group that defines the field(s) whose value(s) are to be exchanged, with the batch function.

For details of how field and group names can be specified in this parameter, refer to Field Groups and Expandable Groups. For more details of how information is exchanged between functions, refer to the EXCHANGE command.

...

The EXCHANGE parameter on this command is provided for convenience only. Using it is identical to using one or more EXCHANGE commands before the SUBMIT command. Thus:

     SUBMIT   PROCESS(PROC01) FUNCTION(FUN1) EXCHANGE(#A #B #C #D)

is functionally identical to:

     EXCHANGE  FIELDS(#A #B #C #D)
SUBMIT    PROCESS(PROC01) FUNCTION(FUN1)

which is functionally identical to:

     EXCHANGE  FIELDS(#A)
EXCHANGE  FIELDS(#B)
EXCHANGE  FIELDS(#C)
EXCHANGE  FIELDS(#D)
SUBMIT    PROCESS(PROC01) FUNCTION(FUN1)

Note that the exchange list is cleared of all entries after the SUBMIT command has completed execution.

Anchor
JOB
JOB
JOB

Optionally specifies the name that is to be assigned to the batch job when it is submitted. The name specified must conform to IBM i naming conventions. Refer to the LANSA Application Design Guide for LANSA's naming conventions.

If this parameter is not specified, default value *PGMPRO is assumed. This indicates that the job submitted should have the same name as either the program specified in the PGM parameter or the process/form specified in the PROCESS parameter (which ever is used).

Anchor
JOBD
JOBD
JOBD

Specifies the name (and optionally library) of the job description that is to be used to submit the job to batch.

...

Special value *USRPRF indicates that the job description associated with the user profile under whose name the submitted job is to execute should be used. Normally submitted jobs execute under the user profile of the person who submitted the job.

Portability Considerations

Refer to IBM i Job Queue Emulation .

Anchor
JOBQ
JOBQ
JOBQ

Specifies the name (and optionally library) of the job queue onto which the batch job should be placed.

...

If this parameter is not specified, default value *JOBD is assumed. This indicates that the job queue associated with the job description specified in the JOBD parameter should be used.

Portability Considerations

Refer to IBM i Job Queue Emulation .

Anchor
OUTQ
OUTQ
OUTQ

Specifies the name (and optionally library) of the output queue onto which the batch job's output should be placed.

...

Refer to the appropriate IBM supplied manual for more details of how the special parameter values *CURRENT, *USRPRF and *DEV can be used.

Portability Considerations

Refer to the SET_SESSION_VALUE Built-In Function.