Default language.

Writer instructions

Page title

For most spaces, this page must be titled Space announcements.

For spaces with localized content, this page must be titled Space announcements l10n.

Purpose

Provide an announcement banner on every page of your space.

Location

Move this page outside of your home branch.

Guidelines

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 BMC AMI Unload for Db2 13.1.

Multiple unloads in a single job step


(SPE2005)

The following are the two ways you can have multiple unloads in a single job step:

  1. (Recommended) Have multiple UNLOAD statements in your SYSIN. Each can specify their own SYSREC.
  2. Have one UNLOAD statement with multiple SELECT clauses. This restricts those unloads to sharing the parameters on the unload statement. BMC AMI Unload converts this syntax to multiple unload statements for processing. See the following sections to know about how to manage the SYSRECs.

Important

For important information regarding CPU usage, see DEGREE parameter.

You can use multiple SELECT statements to unload columns. For more information about SELECT statements, see SELECT.

To use multiple SELECT statements, specify UNLOAD UNLOADDN UNLOADDNPFX before the first SELECT statement. Use the UNLOADDN option to define the prefix of the ddname (the stock ddname) for the unload data sets. For example, if you specify UNLOADDN MYDD, the stock ddname will be MYDD. The stock ddname:

  • Must not end with a number
  • Must not exceed seven characters
  • Should leave enough space for the SELECT statement numbers

The unload data sets must exist in either allocated DD statements in the JCL or in OUTPUT statements. Unload data sets that are specified in the JCL override those that are defined in OUTPUT statements. 

Important

  • You must specify UNLOADDNPFX to unload columns using multiple SELECT statements.
  • If you do not specify a ddname in the UNLOADDN option, the default UNLOADDN value is SYSREC.
  • Separate the SELECT statements with a semicolon ( ; ).

The order of the SELECT statement determines the DD that BMC AMI Unload will use. For example, if you specify UNLOADDN UNLOAD UNLOADDNPFX, the first SELECT statement attempts to use UNLOAD1. If UNLOAD1 is unavailable, the statement attempts to use UNLOAD  (the stock ddname). Likewise, the second SELECT statement attempts to use UNLOAD2. If UNLOAD2 is unavailable, the statement attempts to use the UNLOAD.

If you include PART or OPTIONS(PART) options with multiple SELECT statements, ensure that the DSNAME option on the OUTPUT command contains the &PART or &PARTn symbolic parameter. For more information, please see OUTPUT-syntax-options-common-to-disk-and-tape-data-sets.

Examples

Multiple SELECT statements using DD statements in the JCL.
//UTLPARMS DD *
+SVRMODE(I)
//ULD1 DD DSN=UEA.Q93TSEG3.Q31363S.A003,DISP=(NEW,CATLG),
// UNIT=SYSDA,SPACE=(TRK,5)
//ULD2 DD DSN=UEA.Q93TSEG1.Q31363S.A004,DISP=(NEW,CATLG),
// UNIT=SYSDA,SPACE=(TRK,5)
//SYSIN DD *
UNLOAD
UNLOADDN ULD UNLOADDNPFX
SELECT * FROM UEA.Q93TSEG3;
SELECT * FROM UEA.Q93TSEG1;


Multiple SELECT statements using OUTPUT statements.
//SYSIN DD *
OUTPUT ULD1 DSNAME 'UEA.MVSDSK1.INDSNTB.A001'
OUTPUT ULD2 DSNAME 'UEA.MVSDSK1.INDSNTB.A002'
OUTPUT ULD DSNAME 'UEA.MVSDSK1.INDSNTB.A003'
UNLOAD
UNLOADDN ULD UNLOADDNPFX
SELECT I1 FROM MVSDSK1.INDSNTB
WHERE I1 = 1000000 ;
SELECT B FROM MVSDSK1.INDSNTB
WHERE I1 = 2000000 ;
SELECT * FROM MVSDSK1.INDSNTB
WHERE I1 = 3000000 ;

When you specify multiple SELECT statements, BMC AMI Unload initially ignores the UNLOAD command but regenerates the command once for each SELECT statement. BMC AMI Unload then displays the UNLOAD commands to message NGTU293. If you also specify PART or OPTIONS(PART), BMC AMI Unload will regenerate the UNLOAD command. In this case, you can identify the PART regeneration in message NGTU293.

Sample messages

In the following sample:

  • UNLOADDN specifies the stock ddname ULD.
  • The stock ddname is used in the third SELECT statement.
NGTU293 COMMAND REGENERATED BY MULTIPLE SELECT
NGTU293 UNLOAD  UNLOADDN  ULD1     UNLOADDNPFX SELNUM(0001) SELECT I1 FROM
NGTU293 MVSDSK1.INDSNTB WHERE I1 = 1000000 ;
NGTU293 COMMAND REGENERATED BY MULTIPLE SELECT
NGTU293 UNLOAD  UNLOADDN  ULD2     UNLOADDNPFX SELNUM(0002) SELECT B FROM
NGTU293 MVSDSK1.INDSNTB WHERE I1 = 2000000 ;
NGTU293 COMMAND REGENERATED BY MULTIPLE SELECT
NGTU293 UNLOAD  UNLOADDN ULD     UNLOADDNPFX SELNUM(0003) SELECT * FROM
NGTU293 MVSDSK1.INDSNTB WHERE I1 = 3000000 ;

Restrictions

For restrictions that apply to using the SELECT option, see SELECT.

Related topic

 

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