Limited supportBMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see LOADPLUS for DB2 13.1.

PRELOAD


The PRELOAD option controls the execution of LOADPLUS.

PRELOAD.png

Specifying the default

You can specify the default for the PRELOAD command option in your installation options module by using the PRELOAD installation option. However, you can specify only CONTINUE or LOAD for the installation option. LOADPLUS was shipped with a default value of LOAD for this option. Any PRELOAD command option that you specify overrides the default that is in the installation options module.

LOAD

If you specify PRELOAD LOAD, LOADPLUS uses single-phase load processing, which combines the functions of the PRELOAD and LOAD phases into the COMBINED phase. LOADPLUS reads the input data and copies it directly to the table space. This phase can improve performance in most cases. See Performance-considerations-for-the-PRELOAD-LOAD-installation-and-command-options for details.

Restriction

When invoking DSNUTILB, LOADPLUS ignores this option.

CONTINUE

PRELOAD CONTINUE tells LOADPLUS to use two-phase processing and to continue with the LOAD phase after the PRELOAD phase is completed.

Restrictions

The following restrictions apply to PRELOAD CONTINUE:

  • If you are loading LOB or XML data, LOADPLUS invokes DSNUTILB.
  • If you also specify ENFORCE RI or ENFORCE CONSTRAINTS, LOADPLUS terminates. If you want LOADPLUS to check referential constraints during the load job, specify PRELOAD LOAD.
  • LOADPLUS ignores this option when either of the following conditions exists:
    • LOADPLUS is invoking DSNUTILB.
    • You are running an SQLAPPLY load.

ANALYZE

The PRELOAD ANALYZE option tells LOADPLUS to use two-phase processing, but to stop after the optimization phase of the PRELOAD phase. No data is read and no tables are affected. LOADPLUS displays message BMC51496I indicating the optimal number of sort tasks, read tasks, and index tasks. You can use this information to adjust the number of data sets that you specify in your JCL before resubmitting your job.

Restrictions

LOADPLUS terminates when any of the following conditions exists and you specify PRELOAD ANALYZE:

  • You are loading LOB or XML data.
  • You are running an SQLAPPLY load.
  • LOADPLUS is invoking DSNUTILB.
  • You also specify ENFORCE RI or ENFORCE CONSTRAINTS.

    If you want LOADPLUS to check referential constraints during the load job, specify PRELOAD LOAD.

PAUSE

The PRELOAD PAUSE option tells LOADPLUS to use two-phase processing, but to pause after the PRELOAD phase.

This option is particularly useful if you want to control your outage when running LOAD REPLACE with SHRLEVEL NONE. For this type of load, LOADPLUS normally stops the table space during the LOAD phase instead of the PRELOAD phase. By specifying PRELOAD PAUSE, you can schedule the LOAD phase to minimize the impact on data availability.

Restarting

You can restart the utility at the beginning of the LOAD phase by specifying RESTART or RESTART(PHASE) on your EXEC statement. Note the following information about restarting your PRELOAD PAUSE job:

  • You do not need to change the PRELOAD option on the LOAD command. When restarting a PRELOAD PAUSE job, LOADPLUS ignores the PAUSE specification.
  • If you also specify LOAD RESUME YES and SHRLEVEL NONE is in effect, the participating objects must remain in stopped status before you restart your job.

Restrictions

LOADPLUS terminates when any of the following conditions exists and you specify PRELOAD PAUSE:

  • You are loading LOB or XML data.
  • You are running an SQLAPPLY load.
  • LOADPLUS is invoking DSNUTILB.
  • You also specify ENFORCE RI or ENFORCE CONSTRAINTS.

    If you want LOADPLUS to check referential constraints during the load job, specify PRELOAD LOAD.

ANYDISCARDS

The ANYDISCARDS option tells LOADPLUS to pause after the PRELOAD phase only if input records were discarded during the PRELOAD phase. You can restart the utility in the LOAD phase.

RETCODE

RETCODE allows you to designate the return code that LOADPLUS assigns when pausing after the PRELOAD phase due to discards encountered in the PRELOAD phase. Although you can specify any positive integer, note the following considerations for certain values:

  • LOADPLUS always ends with the highest return code assigned during the load job. Therefore, because PRELOAD PAUSE normally ends with return code 4, specifying a value of 4 or less has no effect. For more information, see Return-code-hierarchy-in-LOADPLUS.
  • If you specify an integer that is greater than 31 but less than 4096, LOADPLUS issues a user abend that is equal to the integer specified.
  • If you specify an integer that is greater than 4095, the LOADPLUS job step terminates with a system abend 001.

For information about return codes that LOADPLUS normally returns, access the messages section of the BMC Documentation Center from the BMC Support Central site (http://www.bmc.com/support). For information about specifying a user-defined return code for a full load job when discard violations occur, see IFDISCARDS.

Important

With BQU2542 applied, SmartSwith will convert PRELOAD PAUSE to PRELOAD CONTINUE if command option SSIGNRPAUSE is set to YES and SmartSwitch switched to BMC AMI Utilities.

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*