Executing a Lawson job through a script

  1. If you are submitting a multi-step job,

    - or -

    If you are submitting a single-step job and do not want to wait for the job to complete before continuing processing, use the jqsubmit utility to execute the job.

    At the Qshell command line, type the command using the required parameters and any optional parameters as needed. (The -U option prints usage and syntax; the -n option prints and returns the job number.)

    jqsubmit [-Un] [-jJobQueue] [-dDate] [-tTime] username jobname

    The jqsubmit utility will submit the job to the Lawson Job Server (lajs) in the background.

  2. If you are submitting a single-step job and want to wait until the job finishes processing before continuing, use the wtsubmit utility to execute the job. The wtsubmit utility cannot be used with multi-step jobs. (The -U option prints usage and syntax; the -n option prints and returns the job number.)

    wtsubmit [-Un] [-jJobQueue] [-dDate] [-tTime] username jobname

    The wtsubmit utility will wait until the job finishes processing before returning control to the calling job or script.