Previous Topic: Submitting Jobs Within an Action Diagram

Next Topic: Defining SBMJOB Parameter Overrides

Inserting a SBMJOB in an Action Diagram

  1. Go to the location in the action diagram of the function where the SBMJOB is to be inserted and type IAF. Press Enter to display the Edit Action - Function Name window.

    Type the file and name of the function to be submitted for batch execution and press Enter. If the function you specified is an EXCEXTFUN, EXCUSRPGM, or PRTFIL function, the Submit job option appears. Type Y to indicate that the function is to be submitted for batch execution.

    Inserting a SBMJOB in an Action Diagram

    Press Enter to display the Overrides option.

    Inserting a SBMJOB in an Action Diagram (2)

    The Overrides option specifies the source of the SBMJOB parameter overrides to use for this call.

Value

Description

*

Model level

F

Function level

L

Action diagram (local) level

Type the appropriate value.

  1. If you specified L for Overrides, press F7 to specify local SBMJOB command parameter overrides for this function. When finished, press Enter.
  2. Specify parameters for the referenced function. Each parameter is formatted and added to a command string that is ultimately invoked as the CMD parameter of the Submit Job (SBMJOB) command.

    Note: Performance degrades if you specify many individual parameters on the call. As a result, it is recommended that you use RCD or KEY parameters only, rather than FLD specifications.

    Press Enter.

    The action diagram displays with the completed action.

    Inserting a SBMJOB in an Action Diagram (3)

    Note: The SBMJOB: prefix indicates that the referenced function will be submitted for batch execution.

  3. Complete your work on the action diagram and save the function.