Cnkugb 10
Cnkugb 10
SC19-4387-00
SC19-4387-00
Note:
Before using this information and the product it supports, read the "Notices" topic at the end of this information.
iii
iv IBM DB2 Sort for z/OS User's Guide
About this information
IBM DB2® Sort for z/OS (also referred to as DB2 Sort) is a DB2 Tool that provides
high-speed utility sort processing for data that is stored in DB2 for z/OS databases.
Always check the DB2 Tools Product Documentation page for the most current
version of this information:
http://www.ibm.com/software/data/db2imstools/db2tools-library.html
v
vi IBM DB2 Sort for z/OS User's Guide
Chapter 1. DB2 Sort overview
IBM® DB2 Sort for z/OS® (also referred to as DB2 Sort) is a DB2 Tool that provides
high-speed utility sort processing for data that is stored in DB2 for z/OS databases.
DB2 Sort improves the sort performance of many of the DB2 utilities in the IBM
DB2 Utilities Suite and of several other DB2 management tools. The way DB2 Sort
improves sort performance is through enhanced sort technology and by
communicating with DB2 utilities and tools and then adjusting system resources to
ensure optimal sorting. This approach to sorting can result in significantly reduced
sort CPU time.
The following DB2 utilities and DB2 Tools can benefit from improved sorting
performance by using DB2 Sort:
DB2 utilities:
v CHECK DATA
v CHECK INDEX
v CHECK LOB
v LOAD
v REBUILD INDEX
v REORG TABLESPACE
v RUNSTATS
Note: DB2 Sort supports all of the utilities in the DB2 Utilities Suite for z/OS
V10.1 and V11.1.
DB2 Tools:
v DB2 Utilities Enhancement Tool for z/OS V2.2 and subsequent releases
v DB2 Log Analysis Tool for z/OS V3.3 and subsequent releases
v DB2 Recovery Expert for z/OS V3.1 and subsequent releases
v DB2 Change Accumulation Tool for z/OS V3.1 and subsequent releases
v DB2 High Performance Unload for z/OS V4.2 and subsequent releases
Topics:
v “What does DB2 Sort do?” on page 2
v “Memory usage optimization” on page 2
v “zIIP technology exploitation” on page 2
v “Optimization of sort work space usage” on page 2
v “How DB2 Sort works with DB2 utilities and tools” on page 4
v “DB2 Sort scenarios” on page 6
v “Product documentation and updates” on page 7
v “Accessibility features” on page 8
1
What does DB2 Sort do?
DB2 Sort can improve the performance of sort processing, especially in
environments with large volumes of data, large table spaces or large indexes. These
environments require a more sophisticated sorting approach than the approach that
is used by tools that are used for general sorting purposes.
Sort processing in these environments often involves intensive CPU usage and
heavy I/O activity, which in turn requires large amounts of memory and disk
space. DB2 Sort meets these demands by optimizing the use of memory, exploiting
zIIP technology, and optimizing the management of sort work disk space.
DB2 Sort coordinates the use of central storage among simultaneous sorts within
an address space, optimizing intra-region parallelism. DB2 Sort also monitors the
use of central storage by all DB2 Sort applications across an LPAR. By monitoring
the resource usage of this inter-region parallelism, DB2 Sort can allocate optimal
amounts of storage while accommodating the needs of other work that is being
performed on the system.
Tip:
Because DB2 Sort manages memory allocation dynamically, setting REGION=0M is
recommended for best performance.
The following sections contain information about how DB2 Sort works with the
DB2 for z/OS subsystem parameter UTSORTAL and the DB2 utility option
SORTNUM.
Note: For the best resource utilization, set the UTSORTAL parameter to YES.
For information about setting the UTSORTAL parameter, see one of the following
documents:
v DB2 11 for z/OS Installation and Migration Guide (GC19-4056)
v DB2 10 for z/OS Installation and Migration Guide (GC19-2974)
To understand how DB2 Sort can optimize sort work space usage, consider the
following questions.
v “What is sort work space?” on page 3
v “What does DB2 Sort improve?” on page 3
A sort with the least amount of I/O activity is one in which all of the input records
can be held in memory simultaneously. In this case, the records can be put into the
proper sequence with only one pass of the input data and can be passed directly to
the output exit routine for the utility.
When the input file is too large to fit into memory, intermediate disk data sets
must be used. These data sets are called sort work data sets or sort work space.
Records have to be written to the sort work data sets and subsequently read back
in, sometimes multiple times, until they can be passed in the proper sequence to
the output exit. This process is complex and consumes time and disk space.
The performance of utility and tool applications that have been set up to allocate
sort work data sets dynamically, either through the use of the SORTNUM parameter to
specify a number of sort work data sets or through the use of the UTSORTAL
parameter, can be improved in two areas:
v A potential reduction in the amount of space allocated
v More resilience in avoiding Sort Capacity Exceeded failures when the file size
estimate is inaccurate
How does DB2 Sort reduce the amount of sort work space?
The DB2 SORTNUM parameter specifies the number of sort work data sets to be
allocated dynamically at the start of a sort to be done by a utility. Without DB2
Sort, this space is acquired immediately, even though it might not be filled until
later in processing. This parameter also limits the number of sort work data sets
that can be allocated dynamically.
With DB2 Sort, when the number of sort work data sets is fewer than 32, DB2 Sort
allows the maximum number of sort work data sets to grow to 32. The initial
allocation starts with the smallest number of sort work allocations that is required
to achieve an appropriate overall data transfer rate when data is read or written to
sort work space. This space is increased incrementally as the data to be sorted is
provided by the utility calling the sort. This incremental allocation consumes less
space overall when measured over the duration of the sort processing. Although
the total amount of disk space used can be the same in either technique, the disk
space will not have been held for as long because the space was added
incrementally. This approach allows this disk space to be available in the
temporary pool for other jobs for a longer period of time. With the mix of work in
a batch environment, the temporary space pool can maintain a higher free space
average, which helps to support other work that is running on the system.
A more serious condition arises when the file size is underestimated. In this case,
the existing technique does not have the ability to allocate more sort work data
sets. This condition can result in a Sort Capacity Exceeded error and the need to
rerun the job with an amended SORTNUM parameter. DB2 Sort has the ability to
continue to allocate additional sort work data sets. This capability makes it
possible to avoid the Sort Capacity Exceeded error and allow the utility or tool to
complete.
In another scenario, the utility or tool can be run with the UTSORTAL parameter set
to YES instead of using the SORTNUM parameter. In this case, the utility or tool itself
can dynamically pre-allocate the sort work data sets if none are provided.
Although, in this case DB2 Sort cannot help with incremental allocation because
the disk space is being provided, it can help when the file size has been
underestimated. This situation might result in a Sort Capacity Exceeded error. DB2
Sort continues to incrementally allocate additional sort works as needed to avoid
this error condition.
DB2 Sort can add more sort work data sets if the currently available set of sort
work data sets is not meeting the performance objectives for data transfer rate. The
addition of sort work data sets at this point can improve the bandwidth of the
write operations, which helps DB2 Sort to meet its elapsed time performance
objectives. DB2 Sort automatically releases any extra sort work space at the end of
the input portion of the sort process. This capability allows DB2 Sort to hold only
the sort work space that is actually needed during the output portion of the sort
process.
DB2 Sort also provides resiliency during its dynamic allocation operation with its
ability to retry a dynamic allocation request after the request has failed due to a
space shortage in the DASD temporary work pool. This retry facility can retry the
dynamic allocation request a prescribed number of times with a specified amount
of time between attempts. This capability helps to ensure that sorts have the best
opportunity for a successful completion without terminating with a Sort Capacity
Exceeded condition.
The following figure shows the series of steps that are performed by DB2 utilities
and DB2 Sort when parallel sorts are invoked.
Available resources
sufficient?
Utility
termination
When DB2 utilities require sort processing, multiple sorts from a single utility are
often run in parallel to reduce the elapsed time of the application. This method of
sorting is referred to as intra-regional parallelism. DB2 Sort communicates with the
DB2 utility to choose the optimal number of sorts to run in parallel. DB2 Sort
assesses the availability of system resources and communicates with the DB2 utility
to optimize the allocation of resources for each sort based on the data
characteristics. By choosing the most effective use of resources for each sort, DB2
Sort can increase the number of sorts that can be run simultaneously. This higher
degree of parallelism can result in lower elapsed time for the application. DB2 Sort
also synchronizes the processing of simultaneous sorts, reducing the wait time
associated with the transfer of records between the utilities and DB2 Sort. This
synchronization lowers the CPU time and elapsed time of the sort processing. The
LOAD, CHECK INDEX, REBUILD INDEX and REORG TABLESPACE utilities can
all benefit from the way that DB2 Sort handles parallel sorts.
DB2 Sort can help reduce utility and tool sort CPU consumption overall. In
addition, DB2 Sort can offload a proportion of CPU processing to zIIP processors,
thereby further reducing load on general purpose processors. For example, if batch
processing with many queries and updates is running simultaneously with object
maintenance using REORG or RUNSTATS, DB2 Sort can enable more concurrent
SQL load, which in turn can reduce the CPU usage. The result of reduced CPU
usage could be either reduced internal costs or more efficient workload, or both.
To find service updates and support information, see the following website:
http://www.ibm.com/support/entry/portal/Overview/Software/
Information_Management/DB2_Tools_for_z~OS
The DB2 Tools Product Documentation web page provides current product
documentation that you can view, print, and download. To locate publications with
the most up-to-date information, refer to the following web page:
http://www.ibm.com/software/data/db2imstools/db2tools-library.html
You can also access documentation for many DB2 Tools from IBM Knowledge
Center:
http://www.ibm.com/support/knowledgecenter
Search for a specific DB2 Tool product or browse the Information Management >
DB2 for z/OS family.
IBM Redbooks® publications that cover DB2 Tools are available from the following
web page:
http://www.redbooks.ibm.com
The Data Management Tools Solutions website shows how IBM solutions can help
IT organizations maximize their investment in DB2 databases while staying ahead
of today's top data management challenges:
http://www.ibm.com/software/data/db2imstools/solutions/index.html
To automatically receive emails that notify you when new technote documents are
released, when existing product documentation is updated, and when new product
Accessibility features
Accessibility features help a user who has a physical disability, such as restricted
mobility or limited vision, to use a software product successfully.
The major accessibility features in this product enable users to perform the
following activities:
v Use assistive technologies such as screen readers and screen magnifier software.
Consult the assistive technology documentation for specific information when
using it to access z/OS interfaces.
v Customize display attributes such as color, contrast, and font size.
v Operate specific or equivalent features by using only the keyboard. Refer to the
following publications for information about accessing ISPF interfaces:
– z/OS ISPF User's Guide, Volume 1
– z/OS TSO/E Primer
– z/OS TSO/E User's Guide
These guides describe how to use the ISPF interface, including the use of
keyboard shortcuts or function keys (PF keys), include the default settings for
the PF keys, and explain how to modify their functions.
Summary of changes
This topic summarizes the technical changes for this edition.
New and changed information is indicated by a vertical bar (|) to the left of a
change. Editorial changes that have no technical significance are not noted.
Information has been added or revised for new enhancements and maintenance.
New and changed information is marked by a vertical bar | to the left of the
change. The major additions and changes include:
v Interface enhancement for DB2 Tools and Utilities that invoke DB2 Sort:
– Reduces CPU time and elapsed time
– Offloads more work to zIIP
v High Performance FICON channel programs for I/O to SORTIN and SORTOUT:
– Reduce elapsed time
The following checklist lists and describes each significant customization step. Use
this checklist to guide you through the entire customization process.
Tip: Print the following checklist and the data set names and parameter values
worksheets. Use the worksheets to record your values, and refer to them during
the customization process.
11
Task Link to detailed instructions Status
Customizing DB2 Sort for the first time “Roadmap: Customizing DB2 Sort for the first
time” on page 33
Follow this roadmap if you do not have a
customized version of DB2 Sort and you need to
customize it for the first time.
Customizing a different version of DB2 Sort “Roadmap: Customizing a new version of DB2
Sort from a previous customization” on page 34
Follow this roadmap if you have already
customized a version of DB2 Sort and you want to
use the same parameter values to customize a
different version.
Recustomizing DB2 Sort “Roadmap: Recustomizing DB2 Sort” on page 35
Use the worksheets in this topic to record the appropriate parameter settings for
your purposes, and then use these worksheets during the customization process.
The worksheets are organized based on the order of the customization panels in
Tools Customizer.
Tip: Print the following worksheets and refer to them during the customization
process.
If you have already customized a version of DB2 Sort and you want to use the
same parameter values to customize a different version, you can use the Discover
EXEC in Tools Customizer. The Discover panel will prompt you for the name of
the library from the previous version of DB2 Sort.
Yes DSNTEP2
Plan name for the DSNTEP2
utility
Yes SYSTOOLS
Schema name
Yes blank
SQL authorization ID
This ID is used in IVP
JCL while creating or
altering DB2 objects
used by DB2 Sort.
Yes CNKDBNAM
Database name for the IVP
Yes CNKSTORG
Storage group name for the
IVP
Yes CNKVCAT
VCAT name for DB2 storage
group for the IVP
Yes CNKUID
Unique identifier for DB2
utilities for the IVP
Yes 2000
Current VPSIZE for 4K BP
used by IVP table space
Yes BP49
Spare 4K buffer pool for IVP
index space
Yes 2000
Current VPSIZE for 4K BP
used by IVP index space
Yes CNKTBSP1
Table space name for IVP
table 1
Yes CNKTBSP2
Table space name for IVP
table 2
Yes CNKTBLN1
Table name for IVP table 1
Yes CNKTBLN2
Table name for IVP table 2
Yes CNKIDX11
Index name 1 for IVP table 1
Yes CNKIDX12
Index name 2 for IVP table 1
Yes CNKIDX13
Index name 3 for IVP table 1
Yes CNKIDX14
Index name 4 for IVP table 1
Yes CNKIDX15
Index name 5 for IVP table 1
Yes CNKIDX21
Index name 1 for IVP table 2
Yes CNKIDX22
Index name 2 for IVP table 2
Yes CNKIDX23
Index name 3 for IVP table 2
The following options refer to values used for the dynamic allocation of sort work
data sets. These data sets are de-allocated when the sort process has completed.
Sort work DASD pool
This value specifies the 1- to 8-character name of the group of devices from
which DB2 Sort dynamically allocates the sort work data sets if SMS is not
installed or active for temporary DASD work data sets. If SMS is active,
you can specify a value for the sort work storage class option. The default
value is SYSDA.
OPTMODE
BALANCE
BALANCE provides the best mix of CPU and elapsed time performance by
balancing utilization of central storage and disk space. Typically BALANCE
uses less CPU time and more elapsed time than ELAP.
CPU CPU optimizes to minimize CPU time without any consideration for elapsed
time, maximizing disk space usage.
ELAP ELAP optimizes to minimize elapsed time while significantly reducing CPU
time, favoring central storage over disk space usage. The default value is
ELAP.
Note 1: All of these options limit central storage use if auxiliary storage
availability is low.
This value specifies the type of storage allocations that DB2 Sort chooses.
PAGEMON
ON Choose ON only if your system is highly sensitive to paging activity.
OFF Choose OFF if you use the defaults for DFSORT's DSPSIZE, HIPRMAX and
MOSIZE installation options. The default value is OFF.
This value specifies whether DB2 Sort displays additional informational messages
for tuning purposes. These tuning messages provide information about the
product's resource utilization, such as memory usage, sort work DASD space, and
sort work EXCPs.
TUNEMSG
ON Enables the generation of the additional tuning messages. The default
value is ON.
OFF Suppresses the additional tuning messages.
Related tasks:
“Creating and associating DB2 entries” on page 40
DB2 entries are optional for DB2 Sort. You can create new DB2 entries and
associate them with DB2 Sort.
“Copying DB2 entries” on page 47
You can copy associated and not associated DB2 entries to other DB2 entries or to
new DB2 entries.
“Removing DB2 entries” on page 49
You can remove DB2 entries from the associated list.
Tools Customizer requires that the following data sets exist during the
customization process. If the data sets do not exist, Tools Customizer automatically
allocates them.
Tools Customizer allocates the data sets for the discover output, the data store, and
the customization library with the attributes that are shown in the following table:
Table 3. Data set attributes for allocating the Discover output, data store, and customization
library data sets
Record Record Data set
Data set Organization format length Block size name type
Discover PO Variable 16383 32760 LIBRARY
output data block
set
Restrictions:
v Multiple users cannot simultaneously share the discover output data set, data
store data set, Tools Customizer metadata library, and metadata library.
v You cannot share the data store data set across multiple LPARs with shared
DASD or copy the data store data set to another LPAR. Tools Customizer creates
many cross-references between product and DB2 associations. Therefore, if you
share or copy the data store data set, member names that are empty or that do
not exist might be generated.
Runtime considerations
To improve performance, you might want to modify the REGION parameter in your
DB2 utility job step. You can also override some of the installation options at run
time.
Although most applications can use the default installation options, some
applications might require different options. You can override installation options
at run time by passing parameters in the DB2SORTI DD data set.
Important: This data set must have a fixed-length format with 80-byte records.
You can specify the DYNALLOC, OPTMODE, and TUNEMSG parameters at run time.
The parameters can start in any column but must be completed on the current
record.
DYNALLOC
Syntax
DYNALLOC = cccccccc
( cccccccc )
( , nnn )
( cccccccc , nnn )
OPTMODE
Syntax
OPTMODE = BALANCE
CPU
ELAP
Options
v BALANCE: BALANCE provides the best mix of CPU and elapsed time performance
by balancing utilization of central storage and disk space. Typically BALANCE uses
less CPU time and more elapsed time than ELAP.
v CPU: CPU optimizes to minimize CPU time without any consideration for elapsed
time, maximizing disk space usage.
v ELAP: ELAP optimizes to minimize elapsed time while significantly reducing CPU
time, favoring central storage over disk space usage.
Note: All of these options limit central storage use if auxiliary storage availability
is low.
TUNEMSG
This parameter specifies whether DB2 Sort will display additional informational
messages for tuning purposes. These tuning messages provide information about
the product's resource utilization, such as memory usage, sort work DASD space,
and sort work EXCPs.
Syntax
TUNEMSG = ON
OFF
Options
v ON: Enables the generation of the additional tuning messages.
v OFF: Suppresses the additional tuning messages.
Note: For the best resource utilization, set the UTSORTAL parameter to YES. This will
enable the best determination of the number of parallel sort tasks depending on
the number of data sets allocated by DB2.
For information about setting the UTSORTAL parameter, see one of the following
documents:
v DB2 11 for z/OS Installation and Migration Guide (GC19-4056)
v DB2 10 for z/OS Installation and Migration Guide (GC19-2974)
Topics:
v “Activating DB2 Sort”
v “Starting Tools Customizer” on page 28
v “Customizing DB2 Sort” on page 33
v “Accessing DB2 Sort libraries” on page 52
You may have to activate DB2 Sort for use in DB2 for z/OS if it has been migrated
from a release earlier than DB2 10 for z/OS.
Important: If you are using a newly installed DB2 10 for z/OS or DB2 11 for
z/OS, DB2 Sort is automatically activated, so no action is required.
Procedure
1. Apply the following program fix APAR PI19784: DB2 SORT FOR Z/OS
PRECONDITIONING.
2. Set the DB2 subsystem parameter DB2SORT to ENABLE.
For information about setting the DB2SORT parameter, see one of the following
documents:
v DB2 11 for z/OS Installation and Migration Guide (GC19-4056)
v DB2 10 for z/OS Installation and Migration Guide (GC19-2974)
27
What to do next
1. Stop and restart the DB2 subsystem.
2. Customize, test or begin using DB2 Sort.
Tools Customizer must be SMP/E installed. You must know the high-level qualifier
of where the Tools Customizer libraries reside. The high-level qualifier is
considered to be all the segments of the data set name except the lowest-level
qualifier, which is SCCQEXEC.
Attention: Ensure that Tools Customizer load libraries are not APF authorized.
APF authorizing Tools Customizer libraries results in an abend.
To run the REXX EXEC, you must either change the placeholder in the EXEC for
the high-level qualifier of the Tools Customizer EXEC library or pass the high-level
qualifier as a parameter when you run the EXEC. The REXX EXEC is in the
CCQTCZ member of the EXEC library.
Procedure
1. Optional: Change the placeholder for the high-level qualifier in the REXX
EXEC:
a. Find the EXEC library data set for Tools Customizer. The name of the data
set is high_level_qualifier.SCCQEXEC.
b. Edit data set member CCQTCZ and replace the <TCZ HLQ> string with the
high-level qualifier of the EXEC library data set. For example, if the name of
the Tools Customizer EXEC library is CCQTCZ.USABSAND.SCCQEXEC,
replace <TCZ HLQ> with CCQTCZ.USABSAND.
You have to change the placeholder for the high-level qualifier only once.
When you run the REXX EXEC, you do not have to pass the high-level
qualifier as a parameter.
2. Run the REXX EXEC (CCQTCZ):
a. From the ISPF Primary Option Menu, select option 6. The ISPF Command
Shell panel is displayed.
b. Specify the EX command to run the REXX EXEC. For example, if the Tools
Customizer EXEC library is CCQTCZ.USABSAND.SCCQEXEC and you
changed the placeholder for the high-level qualifier in the REXX EXEC,
specify: EX 'CCQTCZ.USABSAND.SCCQEXEC(CCQTCZ)'
If you did not change the placeholder for the high-level qualifier in the
REXX EXEC, specify: EX 'CCQTCZ.USABSAND.SCCQEXEC(CCQTCZ)'
'CCQTCZ.USABSAND'
The IBM Customizer Tools for z/OS main menu panel is displayed.
What to do next
If you are running Tools Customizer for the first time, you must modify the Tools
Customizer user settings. If you have already set the Tools Customizer user
settings, either customize or recustomize DB2 Sort.
Procedure
1. On the IBM Tools Customizer for z/OS main panel (CCQPHME), specify
option 0, User settings for Tools Customizer. The Tools Customizer Settings
panel (CCQPSET) is displayed, as shown in the following figure:
2. Review the values for the following required fields. Use the default value or
specify your own value. You must have appropriate read and write access to
the data sets that are specified.
Customization library qualifier
The high-level qualifier that is used as the prefix for the customization
library. The customization library is a data set in which the generated
jobs to customize DB2 Sort are stored. Write access to this qualifier is
required.
For each product to be customized, the first value that is specified for
the qualifier is always used, even if you change it after you have
generated the customization jobs. For example, if you customize a
Important: This field has no effect when you are customizing a product
on a DB2 subsystem that is not a member of a data sharing group. In
this case, the DB2 subsystem ID (SSID) is always used in the
CONNECT statements in the generated customization jobs.
When you are customizing a product on a DB2 subsystem that is a
member of a data sharing group, how the DB2 subsystem is defined
and the value of the Use DB2 group attach field determines the value
that is used in the CONNECT statements in the generated jobs. The
following table shows whether the SSID or the group attach name is
used:
Table 4. The effect of the value of the Use DB2 group attach field in a data sharing
environment
Value of the Use DB2 group Value that is used in the
DB2 subsystem definition attach field CONNECT statements
The DB2 subsystem is Yes Group attach name
defined with an SSID.
No SSID1
The DB2 subsystem is not Yes or No Group attach name
defined with an SSID.
Note 1: If you generate jobs for multiple DB2 subsystems that are defined with an SSID and
belong to the same data sharing group, the SSID of the first DB2 subsystem that is selected
is used.
The following table shows which values are used in the CONNECT
statements in the generated jobs, based on the value of the Use DB2
group attach field.
Table 5. Value that is used in the CONNECT statements in the generated jobs
Value of the Use DB2 group Value that is used in the
SSID GrpAttch attach field CONNECT statements
Yes SSID
V91C --
No SSID
Yes Group attach name
V91A DSG1
No SSID
Yes Group attach name
-- DSGA
No Group attach name
Important: If the ISPF sessions unexpectedly ends before you exit Tools
Customizer, the fields on the Tools Customizer Settings panel (CCQPSET) will
be repopulated with default values, and you will be required to review them or
specify new values again.
Results
The values are saved, and the IBM Tools Customizer for z/OS main menu panel
(CCQPHME) is displayed again.
What to do next
You are ready to customize or recustomize DB2 Sort or to change parameter
settings.
Related concepts:
“Customizing DB2 Sort” on page 33
Using Tools Customizer to customize DB2 Sort consists of identifying the product
to customize; defining any required DB2 Sort and DB2 parameters; generating the
customization jobs; and submitting the jobs.
By hiding this information, more data can be displayed on the panels. Later, you
can redisplay this information also by using the OPTIONS command.
Select panel display options and press Enter. To cancel, press End.
2. To hide any of the options, remove the slash, and press Enter.
Customization roadmaps describe the steps that you must complete to customize
DB2 Sort. Separate roadmaps are provided for the three most common types of
customizations.
If you are customizing a previous version of DB2 Sort, see “Roadmap: Customizing
a new version of DB2 Sort from a previous customization” on page 34.
Before you complete these steps, ensure that the following prerequisites have been
met:
Complete the steps in the following table to customize DB2 Sort for the first time.
Table 7. Steps for customizing DB2 Sort for the first time
Step Description Instructions
1 Specify the product metadata library for “Specifying the metadata library for the
the product that you want to product to customize” on page 36
customize. The name of this library is
hlq.SCNKDENU.
2 Create new DB2 entries and associate “Creating and associating DB2 entries”
them with DB2 Sort. on page 40
3 Define the required parameters. “Defining parameters” on page 41
4 Generate the customization jobs for the “Generating customization jobs” on
product or for the DB2 entries on which page 45
DB2 Sort is ready to be customized.
5 Submit the generated customization “Submitting customization jobs” on
jobs. page 45
The following table lists some of the common administrative tasks that you might
need to do during the customization process.
Table 8. Administrative tasks
Description Instructions
Browse the different types of parameters. “Browsing parameters” on page 47
Copy an existing DB2 entry to the list of DB2 “Copying DB2 entries” on page 47
entries on which DB2 Sort can be
customized.
Remove one or more DB2 entries from the “Removing DB2 entries” on page 49
associated list.
Delete one or more DB2 entries from the “Deleting DB2 entries” on page 49
master list.
Display a list of customization jobs that have “Displaying customization jobs” on page 50
been previously generated.
Maintain the customization jobs in the “Maintaining customization jobs” on page 50
customization library.
Use this roadmap even if the previous version of DB2 Sort was not customized by
using Tools Customizer.
Complete the steps in the following table to customize a new version of DB2 Sort
from a previous customization.
Table 9. Steps for customizing a new version of DB2 Sort from a previous customization
Step Description Instructions
1 Specify the product metadata library for “Specifying the metadata library for the
the product that you want to customize. product to customize” on page 36
The name of this library is
hlq.SCNKDENU.
2 Use the DB2 Sort Discover EXEC to “Discovering DB2 Sort information
discover information about the version automatically” on page 38
of DB2 Sort that you previously
customized manually.
3 Define the required parameters. “Defining parameters” on page 41
4 Generate the customization jobs for the “Generating customization jobs” on
product or for the DB2 entries on which page 45
DB2 Sort is ready to be customized.
5 Submit the generated customization “Submitting customization jobs” on
jobs. page 45
The following table lists some of the common administrative tasks that you might
need to do during the customization process.
Table 10. Administrative tasks
Description Instructions
Browse the different types of parameters. “Browsing parameters” on page 47
Copy an existing DB2 entry to the list of DB2 “Copying DB2 entries” on page 47
entries on which DB2 Sort can be
customized.
Remove one or more DB2 entries from the “Removing DB2 entries” on page 49
associated list.
Delete one or more DB2 entries from the “Deleting DB2 entries” on page 49
master list.
Display a list of customization jobs that have “Displaying customization jobs” on page 50
been previously generated.
Maintain the customization jobs in the “Maintaining customization jobs” on page 50
customization library.
Before you complete these steps, ensure that the following prerequisites have been
met:
v All of the product customization steps that must be done before Tools
Customizer is started are complete.
v Tools Customizer is started.
The following table lists some of the common administrative tasks that you might
need to do during the customization process.
Table 12. Administrative tasks
Description Instructions
Browse the different types of parameters. “Browsing parameters” on page 47
Copy an existing DB2 entry to the list of DB2 “Copying DB2 entries” on page 47
entries on which DB2 Sort can be
customized.
Remove one or more DB2 entries from the “Removing DB2 entries” on page 49
associated list.
Delete one or more DB2 entries from the “Deleting DB2 entries” on page 49
master list.
Display a list of customization jobs that have “Displaying customization jobs” on page 50
been previously generated.
Maintain the customization jobs in the “Maintaining customization jobs” on page 50
customization library.
The product metadata library contains the information that determines which
tasks, steps, and parameters are required to customize DB2 Sort. This information
controls what is displayed on the Product Parameters panel and the DB2
Parameters panel.
After DB2 Sort has been SMP/E installed, the default name of the product
metadata library is high_level_qualifier.SCNKDENU, where high_level_qualifier is all
of the segments of the data set name except the lowest-level qualifier.
Procedure
1. Specify option 1 on the Tools Customizer for z/OS panel. The Specify the
Metadata Library panel is displayed. This panel contains a list of the product
metadata libraries that you specified most recently. If you are using Tools
Customizer for the first time, this list is empty, as shown in the following
figure:
Type the name of the metadata library for the pack or the product in the
Metadata library field, or select the library in the list of previous
libraries and press Enter to populate the field. Press Enter to continue.
The default name of the metadata library after the pack or product has been
SMP/E installed is <hlq>.SxxxDENU, where <hlq> is the high-level qualifier for
the pack or the product, and xxx is the 3-character prefix for the pack or
the product.
=>
=>
=>
=>
2. Use one of the following methods to specify the product metadata library:
v Type the name of a fully qualified partitioned data set (PDS) or an extended
partitioned data set (PDSE) in the Metadata library field. Double quotation
marks (") cannot be used around the name. Single quotation marks (') can be
used but are not required. If you are customizing DB2 Sort for the first time,
you must use this method.
v Place the cursor on the library name in the Recent Metadata Libraries list,
and press Enter.
Results
If you are customizing DB2 Sort for the first time, the Run Discover EXEC panel is
displayed. Otherwise, the Customizer Workplace panel is displayed.
What to do next
v Complete the steps that correspond to your environment:
Customizing DB2 Sort for the first time
Do not run the DB2 Sort Discover EXEC. Press End. The Customizer
Workplace panel is displayed. If your environment requires associated
Tip: Using the DB2 Sort Discover EXEC to discover information from a previous
or current customization saves time and reduces errors that can occur when
parameters are specified manually.
DB2 Sort provides the Discover EXEC that you will run. Therefore, the information
that can be discovered depends on DB2 Sort.
Parameter values that are discovered and parameter values that are specified
manually are saved in the data store. If parameter values for the product that you
want to customize exist in the data store, Tools Customizer issues a warning before
existing values are replaced.
Procedure
1. On the Customizer Workplace panel, issue the DISCOVER command. If you chose
to run the DB2 Sort Discover EXEC on the pop-up panel after you specified the
product to customize, skip this step.
Tip: You can run any Tools Customizer primary command by using either of
the following methods:
v Place the cursor on the name of the primary command, and press Enter.
v Type the primary command name in the command line, and press Enter.
The Discover Customized Product Information panel is displayed, as shown in
the following figure:
For the product you are customizing, the Discover EXEC retrieves product
information from an already customized product. Specify the required
information. To save your information and run the Discover EXEC, issue the RUN
command. To save your information and stay on this panel, issue the SAVE
command. To verify the syntax of your information without saving it, press
Enter. To save and exit, press End.
2. Either accept the default values for the following input fields that Tools
Customizer generates, or replace the default values with your own values:
Discover EXEC library
The fully qualified data set name that contains the DB2 Sort Discover
EXEC.
Discover EXEC name
The name of the DB2 Sort Discover EXEC.
Discover output data set
The fully qualified data set where output from the DB2 Sort Discover
EXEC is stored.
3. Either accept or change the default values in the Information for Discover
EXEC fields. These fields are generated by DB2 Sort. They show the
information that is required to run the DB2 Sort Discover EXEC.
4. Issue the RUN command to run the DB2 Sort Discover EXEC. Alternatively, save
your information without running the DB2 Sort Discover EXEC by issuing the
SAVE command. If you issue the RUN command to run the DB2 Sort Discover
EXEC, the parameter information is discovered for DB2 Sort, and the
Customizer Workplace panel is displayed.
Results
The discovered parameter values for DB2 Sort replace any existing values.
What to do next
Procedure
1. Issue the ASSOCIATE command on the Customizer Workplace panel. The
Associate DB2 Entry for Product panel is displayed, as shown in the following
figure:
Select any of the following DB2 entries to add them to the Customizer
Workplace panel. You use the Customizer Workplace panel to choose the DB2
subsystems, data sharing members, and group attach names on which to
customize the product.
DB2 Entries
Line commands: A - Associate C - Copy D - Delete
Cmd SSID GrpAttch
------------------------------ End of DB2 entries -----------------------------
2. Create DB2 entries. If you need to associate DB2 entries that are already in the
master list, skip this step and go to step 3.
a. Issue the CREATE command. The Create DB2 Entries panel is displayed, as
shown in the following figure:
Specify the SSID, the group attach name, or both in the appropriate columns
for each new DB2 entry and press Enter. To create additional entries, issue
the Inn line command, where nn is the number of entries to be inserted, and
press Enter. To cancel, press End.
b. In the appropriate columns, specify a DB2 subsystem ID, DB2 group attach
name, or DB2 data sharing member name for the DB2 entry that you want
to create, and press Enter. Valid values are 1 - 4 characters. You can use
symbolic characters. You cannot use blanks.
Tips:
Select any of the following DB2 entries to add them to the Customizer
Workplace panel. You use the Customizer Workplace panel to choose the DB2
subsystems, data sharing members, and group attach names on which to
customize the product.
DB2 Entries
Line commands: A - Associate C - Copy D - Delete
Cmd SSID GrpAttch
DB02 --
------------------------------ End of DB2 entries -----------------------------
Figure 8. The Associate DB2 Entry for Product panel with a new DB2 entry in the master list
c. Repeat steps b and c for each DB2 entry that you want to create.
d. When you have created all the DB2 entries, associate them with DB2 Sort,
or press End to display the Customizer Workplace panel.
3. Associate DB2 entries.
a. Specify A against one or more DB2 entries in the master list, and press Enter
to associate them with DB2 Sort.
Results
The Customizer Workplace panel is displayed with the associated DB2 entries
displayed in the associated list.
What to do next
Defining parameters
To customize DB2 Sort, you must define DB2 Sort parameters and DB2 parameters,
if your customization requires DB2 entries.
You must define the DB2 Sort parameters first for the following reasons:
If you ran the DB2 Sort Discover EXEC, you must review the parameters that were
discovered.
Procedure
1. Specify E next to the Product parameters field on the Customizer Workplace
panel, and press Enter. The Product Parameters panel is displayed, as shown in
the following figure. If other steps must be completed in a specific sequence
before you define the DB2 Sort parameters, a note labeled Important will
display the correct sequence on this panel.
Complete the following tasks to customize the products. The required tasks
and steps are preselected. Ensure that all parameters are specified for each
selected step within a task. Press End to save and exit.
Required parameters
SCNKLINK library . . . . CNK210.SCNKLINK
SCNKLPA library . . . . CNK210.SCNKLPA
2. Select any required tasks and steps, and specify values for any parameters.
After you select a task or step with a slash (/), put the cursor in the selected
field and press Enter. If tasks, steps, and parameters are required, they are
preselected with a slash (/). Otherwise, they are not preselected.
Tips:
v In the command line, specify the KEYS command, and map EXPAND to one
of the function keys.
v For a detailed description of all input fields, put the cursor in the field, and
press F1 or the key that is mapped to Help.
v The following elements apply to specific fields:
– Add... is displayed when parameters can have multiple values but
currently have only one value. To specify multiple values in these fields,
place the cursor on Add..., and press Enter. Use the displayed panel to
add or delete additional values.
– List... is displayed when the complete list of valid values for the fields is
too long to be displayed on the panel. To see the complete list of values,
place the cursor on List..., and press F1 or the key that is mapped to Help.
– More... is displayed when input fields contains multiple values. To see all
of the values in the field, place the cursor on More..., and press Enter.
3. Optional: Select other tasks and steps with a slash (/) and press Enter to
activate the input fields. Either accept or change the default values that are
displayed.
4. Press End to save your changes and exit, or issue the SAVE command to save
your changes and stay on the Product Parameters panel.
Results
The Customizer Workplace panel is displayed, and the status of the product
parameters is Ready to Customize.
What to do next
If you did not run the DB2 Sort Discover EXEC, you must create and associate one
or more DB2 entries before you can define the DB2 parameters. For more
information, see “Creating and associating DB2 entries” on page 40.
Procedure
1. Specify E next to one or more DB2 entries in the associated list, which is in the
Associated DB2 Entries and Parameter Status section on the Customizer
Workplace panel, and press Enter. The DB2 Parameters panel is displayed, as
shown in the following figure:
Enter values for all of the DB2 parameters. Press End to save and exit.
DB2 Libraries
Load Library . . . . . . . . . . . . . . . DSN.SDSNLOAD > Add...
Run Library . . . . . . . . . . . . . . . DSN.RUNLIB.LOAD > Add...
Tips:
v In the command line, specify the KEYS command, and map EXPAND to one
of the function keys.
v For a detailed description of all input fields, put the cursor in the field, and
press F1 or the key that is mapped to Help.
v The following elements apply to specific fields:
– Add... is displayed when parameters can have multiple values but
currently have only one value. To specify multiple values in these fields,
place the cursor on Add..., and press Enter. Use the displayed panel to
add or delete additional values.
– List... is displayed when the complete list of valid values for the fields is
too long to be displayed on the panel. To see the complete list of values,
place the cursor on List..., and press F1 or the key that is mapped to Help.
– More... is displayed when input fields contains multiple values. To see all
of the values in the field, place the cursor on More..., and press Enter.
Many parameters have default values, which you can either accept or change.
3. Press End to save your changes and exit, or issue the SAVE command to save
your changes and stay on the same panel.
Results
The status of the DB2 entries that you selected on the Customizer Workplace panel
is Ready to Customize.
What to do next
Procedure
Results
What to do next
Tip: If the customization jobs are generated, but you are not ready to submit them,
you can see them later by issuing the JOBLIST command on the Customizer
Workplace panel. The JOBLIST command displays the Finish Product
Customization panel, which you can use to submit the jobs.
If you generated an IVP job, ensure that you complete the following steps before
you submit the IVP job:
v Authorize the SCNKLINK and SCNKLPA libraries.
v Issue the following DB2 command to collect performance trace data: -START
TRACE(P) DEST(SMF) CLASS(30) IFCID(25) TDATA(COR,CPU).
The following figure shows part of the Finish Product Customization panel. The
table on this panel shows the customization jobs that are generated by Tools
where
job_sequence_number
Two alphanumeric characters, A0 - Z9, that Tools Customizer
assigns to a customization job. The number for the first template in
the sequence is A0, the number for the second template is A1, and
so on.
job_ID Characters 4 - 7 of the template name, if the template name
contains five or more characters. Otherwise, only character 4 is
used. DB2 Sort assigns the template name.
DB2_entry_ID
Two alphanumeric characters, AA - 99, that Tools Customizer
assigns to a DB2 entry.
For example, the XYZBNDDB2_entry_ID_1 and XYZBNDDB2_entry_ID_2
jobs are generated from the XYZBNDGR template, and the
XYZ4DB2_entry_ID_1 and XYZ4DB2_entry_ID_2 jobs are generated from
the XYZ4 template. If the jobs are generated on two DB2 entries, the
following member names are listed sequentially: A0BNDGAA,
A0BNDGAB, A14AA, A14AB.
Customization jobs for the product
The members use the following naming convention:
<job_sequence_number><job_ID>
where
job_sequence_number
Two alphanumeric characters, A0 - Z9, that Tools Customizer
Procedure
1. Submit the generated customization jobs by following the process that you use
in your environment or by using the following method:
a. Specify B against a customization job or the product customization library,
and press Enter. An ISPF browsing session is started.
b. Browse the customization job or each member in the library to ensure that
the information is correct.
c. Run the TSO SUBMIT command.
2. Press End.
Results
DB2 Sort is customized, and the Customizer Workplace panel is displayed. The
status is Customized for the DB2 entries on which DB2 Sort was customized.
What to do next
You can generate more customization jobs for other DB2 entries, view a list of
customization jobs that you previously generated, or recustomize DB2 Sort.
Browsing parameters
You can browse the product parameters and the DB2 parameters in read-only
mode.
Procedure
1. On the Customizer Workplace panel, specify B next to the Product parameters
field or the DB2 entry that you want to browse, and press Enter. The panel that
corresponds to your specification is displayed.
2. Press End to exit.
Procedure
1. To copy an associated DB2 entry to another associated DB2 entry or to an entry
that is not associated, complete the following steps:
a. Specify C against a DB2 entry in the associated list of DB2 entries on the
Customizer Workplace panel, and press Enter. The Copy Associated DB2
Entry panel is displayed.
b. Select one or more DB2 entries to which information will be copied by
specifying the / line command, and press Enter. The Associated column
indicates whether the DB2 entry is associated.
Tip: To copy information into all of the DB2 Entries in the list, issue the
SELECTALL primary command, and press Enter.
The Copy DB2 Parameter Values panel is displayed.
c. Specify an option for copying common and product-specific DB2 parameter
values. Common DB2 parameter values apply to all DB2 entries for all
products that you have customized by using Tools Customizer.
Product-specific DB2 parameter values apply only to the product that you
are currently customizing.
v To copy the common DB2 parameter values and the product-specific DB2
parameter values, specify option 1, and press Enter.
v To copy only the product-specified DB2 parameter values, specify option
2, and press Enter.
In some cases, the DB2 parameter values might contain the DB2 subsystem
ID as an isolated qualifier in data set names. For example, in the
DB01.DB01TEST.DB01.SANLLOAD, data set name, the DB01 subsystem ID
is isolated in the first and third qualifiers but is not isolated in the second
qualifier. When the DB2 subsystem ID is an isolated qualifier in data set
names, the Change DB2 Subsystem ID in DB2 Parameter Values panel is
displayed. Otherwise, the Customizer Workplace panel is displayed.
d. If the Change DB2 Subsystem ID in DB2 Parameter Values panel is
displayed, specify an option for changing the subsystem IDs. Otherwise,
skip this step.
v To change the subsystem ID in isolated qualifiers in data set names,
specify option 1, and press Enter.
v To use the same subsystem ID in all values, specify option 2, and press
Enter.
The Customizer Workplace panel is displayed with the copied associated
entry in the list.
2. To copy an associated DB2 entry to a new entry, complete the following steps:
a. Specify C against a DB2 entry in the associated list of DB2 entries on the
Customizer Workplace panel, and press Enter. The Copy Associated DB2
Entry panel is displayed.
b. Issue the CREATE command. The Create DB2 Entries panel is displayed.
c. Specify the SSID, the group attach name, or both in the appropriate columns
for each new DB2 entry, and press Enter.
Tip: To add rows for additional entries, specify the Inn line command,
where nn is the number of entries to be created, and press Enter.
The Copy Associated DB2 Entry panel is displayed with the new entries in
the list. The new entries are preselected.
What to do next
When you remove DB2 entries from the associated list, any customization jobs for
the entries are removed from the list of jobs on the Finish Product Customization
panel, and they are deleted.
Procedure
On the Customizer Workplace panel, specify R next to one or more DB2 entries
that you want to remove, and press Enter. The selected DB2 entries are removed
from the associated list and added to the master list on the Associate DB2 Entry
for Product panel, and the customization jobs are deleted.
Related concepts:
“Tools Customizer terminology” on page 18
Tools Customizer uses several unique terms that you should be familiar with
before you begin to use Tools Customizer.
When you delete DB2 entries from the master list, any associations and all
customization jobs for products that are customized on the entries will be deleted.
What to do next
If you selected multiple DB2 entries to delete, repeat step 3 until all selected entries
are deleted. Then, continue the customization process.
The customization jobs that you generate for one DB2 entry are also displayed
when you customize DB2 Sort for another DB2 entry later.
Procedure
On the Customizer Workplace panel, issue the JOBLIST command. The Finish
Product Customization panel is displayed. This panel shows the list of jobs that
you have previously generated. They are grouped by job sequence number. Use
this panel to browse or edit the generated jobs before you submit them.
You cannot delete or rename customization jobs from the customization library by
starting an ISPF browse or edit session from the Finish Product Customization
panel. If you try to delete customization jobs by using this method, the CCQC034S
message is issued. If you try to rename customization jobs, the CCQC035S message
is issued.
If you delete or rename customization jobs from the customization library by using
ISPF outside of Tools Customizer, Tools Customizer will not recognize that the jobs
were deleted, and the Finish Product Customization panel will still display them. If
you browse or edit jobs that were deleted from the library outside of Tools
Customizer, the CCQC027S message is issued.
Procedure
Important: This method will likely not be the preferred approach for most
organizations because most organizations tend to use similar or identical
customization values for each product instance on all LPARs.
Procedure
Decide how you want to access the DB2 Sort libraries, SCNKLINK and SCNKLPA.
To make these decisions, consider the following information about the attributes of
the DB2 Sort libraries:
v The SCNKLINK and SCNKLPA libraries can be in the LNKLST.
v The SCNKLPA library can be in the LPA, but it is not required to be in the LPA.
v If the SCNKLPA library is not in the LPA, it must be APF-authorized.
v The SCNKLINK library must be APF-authorized.
What to do next
You can submit the Installation Verification Program job that you generated with
Tools Customizer to test your product configuration before moving to a production
environment. After the IVP job runs to completion, refer to the procedure to
generate an IVP report in “Generating an IVP report” on page 54.
After the product has been successfully installed and configured and the load
library is APF-authorized, you may begin using DB2 Sort. Refer to the sample job
in “Running with DB2 Sort” on page 55.
Topics:
v “Installation Verification Program: Overview”
v “Using Installation Verification Program” on page 54
v “Generating an IVP report” on page 54
DB2 Sort IVP is a self-contained evaluation and testing methodology you can use
to determine that DB2 Sort is installed correctly and performing properly.
When you are customizing DB2 Sort with Tools Customizer, you can choose the
cases for IVP. There are four table sizes: 8 billion bytes, 10 billion bytes, 25 billion
bytes and 40 billion bytes. Base your decision on the amount of disk space and
time you want the job to use.
To ensure that the IVP results are meaningful, you must run IVP in an appropriate
test environment that represents your production environment as much as possible.
Use the following general requirements when setting up your test environment:
v CPU: 2 general purpose processors minimum, preferably 4 or more; 1 or more
zIIP processors
v DASD: Minimum of 6 volumes (PAV-capable)
v Channels: Minimum of 6 (quiet)
v Memory: Minimum of 10 GB
v LPAR: Stand-alone or quiet system
v Traces: Turn off all DB2 Utility traces that impact performance times
53
Using Installation Verification Program
Use the Installation Verification Program (IVP) in a test environment to verify that
your DB2 Sort installation and any customizations you made are functioning
correctly before moving to a production environment.
Make sure that DB2 Sort has been installed and you have an appropriate test
environment. For details about setting up the test environment, see “Installation
Verification Program: Overview” on page 53.
Since information about the IVP job will be recorded in SMF records and
performance trace data, you must ensure that your system is set up to generate the
performance trace data, using the following requirement:
v Issue the following DB2 command to collect performance trace data:
-START TRACE(P) DEST(SMF) CLASS(30) IFCID(25) TDATA(COR,CPU)
Note: Issue a DISPLAY TRACE(*) first. If another active trace with CLASS(30) has
started, you will need to issue a START TRACE(P) CLASS(31) or (32). If all three
classes are in use, add IFCID(25) using a MODIFY TRACE command. Alternatively,
you can issue the STOP TRACE(P) command and reissue the START TRACE(P),
combining the different IFCIDs into the single START TRACE(P) command.
If you have generated the IVP job with Tools Customizer, submit the job after you
have set up your environment to generate the performance trace data and after
your DB2 Sort libraries have been made accessible. For instructions on making
your libraries accessible, see “Accessing DB2 Sort libraries” on page 52.
The report program uses SMF type 30 subtype 4 and DB2 SMF 102 (IFCID 25)
records as input.
Procedure
1. Extract the SMF type 30 subtype 4 records and the SMF 102 records from your
SMF data sets and put them into a single data set. You can use the IFASMFDP
program to create the data set.
2. If DB2 SMF records are in compressed format, you must decompress the SMF
records prior to using the reporter job with the SMF decompression program
DSNTSMFD.
Note: If your transfer facility offers a carriage return/ line feed option (CRLF),
it should be selected.
6. Transfer the member named CNKIVXLS which is located in the SCNKBENU
library to a PC/workstation in binary mode, renaming it to cnkivxls.xls.
7. On the PC/workstation, open the cnkivxls.xls spreadsheet. Enable content in
response to the security warning. Select the Worksheet tab and follow the
directions within the worksheet.
Results
After the worksheet has been filled in, choose the Summary and Details tabs to
view the reports.
What to do next
After the product has been successfully installed and configured and the load
library is APF-authorized, you may begin running DB2 utilities and tools with DB2
Sort.
Example
Here is a sample job with the DB2 Sort load libraries specified in the STEPLIB of
the job:
//SRTREORG JOB (’DB2/APPL’),’REORG00’,REGION=0M
...
//STEP1 EXEC PGM=DSNUTILB,PARM=(DBM0,’SRZTAUM3’),REGION=0M
...
//STEPLIB DD DSN=DB2M.SDSNEXIT,DISP=SHR
// DD DSN=DB2M.SDSNLOAD,DISP=SHR
// DD DSN=<hlq>.DB2SORT.SCNKLINK,DISP=SHR
// DD DSN=<hlq>.DB2SORT.SCNKLPA,DISP=SHR
...
//SYSPRINT DD SYSOUT=*
//UTPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
...
Topics:
v “DB2 Sort messages”
v “Gathering diagnostic information” on page 70
Message format
Where:
CNK Indicates that the message was issued by DB2 Sort
nnn Indicates the message identification number
x Indicates the severity of the message:
E Indicates that an error occurred, which might or might not require
operator intervention
I Indicates that the message is informational only
57
CNK046E • CNK071E
System action: None. User response: Ask the system programmer who is
responsible for installing DB2 Sort to contact IBM
User response: No action is required. Software Support.
CNK167E RECORD LENGTH GREATER THAN CNK174E RDW INVALID, OVERFLOWS BUFFER
OUTPUT LRECL
Explanation: The Record Descriptor Word of a record
Explanation: DB2 Sort has encountered a in the input data set is too large. (According to the
variable-length record longer than the LRECL in the RDW, the record extends beyond the buffer.)
output file’s DCB.
System action: Processing stops.
System action: Processing stops.
User response: Correct the data set and resubmit the
User response: Correct the data set and resubmit the job.
job.
CNK177I TURNAROUND SORT PERFORMED
CNK170E CONCATENATED DATA SET, BLKSIZE
Explanation: DB2 Sort was able to sort the input file
NOT DIVISIBLE BY LRECL
without using intermediate storage (sort work data
Explanation: One of the files concatenated to a sets). All input data was contained in virtual storage.
fixed-length input data set has a BLKSIZE that is not
System action: None.
evenly divisible by the original LRECL.
User response: No action is required.
System action: Processing stops.
User response: Correct the data set attribute
CNK178E ddname [nnnnn] MEMBER NOT
specifications and resubmit the job.
FOUND
Explanation: An input DD statement specified a
CNK171E CONCATENATED DATA SET, LRECLS
member of a partitioned data set that could not be
NOT EQUAL OR RECFMS DIFFERENT
found. nnnnn represents the concatenation number of
Explanation: One of the files concatenated to a the data set that has the member-not-found condition if
fixed-length input data set has an LRECL not equal to the data set is part of a concatenation.
the original LRECL; or one of the files concatenated to
System action: Processing stops.
a variable-length data set has an LRECL greater than
the original LRECL; or one of the files concatenated to User response: Correct the data set specification and
a fixed or variable-length data set has a RECFM not resubmit the job.
equal to the original RECFM.
System action: Processing stops. CNK179E ddname INVALID DCB PARAMETERS
User response: Correct the data set attribute Explanation: DB2 Sort was unable to derive RECFM,
specifications and resubmit the job. LRECL, and BLKSIZE parameters from the JCL, the
DSCB on the disk or the tape label.
CNK172E CONCATENATED DATA SET, BLKSIZE System action: Processing stops.
GREATER THAN ORIGINAL BLKSIZE
User response: Supply the data set attributes and
Explanation: One of the files concatenated to an input resubmit the job.
data set has a BLKSIZE greater than the original
BLKSIZE.
CNK180E ddname MEMBER NOT SPECIFIED
System action: Processing stops.
Explanation: An input or output DD statement
User response: Correct the data set attribute defines a partitioned data set, but a member name has
specifications and resubmit the job. not been specified. ddname is SORTIN or SORTOUT.
System action: Processing stops.
Explanation: BLKSIZE and LRECL were not equal on User response: Correct the data set specification and
the indicated DD statement for RECFM=F, or BLKSIZE resubmit the job.
was not a multiple of LRECL for RECFM=FB.
System action: Processing stops. CNK202E ddname RECFM INCOMPATIBLE
User response: Correct the DCB attributes and Explanation: The record format of the output file is
resubmit the job. not the same as the input file or the record format of a
record provided by an E15 exit.
CNK198E ddname VARIABLE LRECL LESS System action: Processing stops.
THAN OR EQUAL TO 4
User response: Correct the data set specification and
Explanation: The LRECL specification on the indicated resubmit the job.
input or output DD statement did not allow 4 bytes for
the RDW plus 1 byte for data.
CNK208I MIXTURE OF SORTWK DEVICES
System action: Processing stops.
Explanation: Sort work data sets were assigned to
User response: Correct the LRECL specification and different device types.
resubmit the job.
System action: None.
User response: No action is required.
CNK199E ddname RECORD TYPE=V, BLKSIZE
LESS THAN OR EQUAL TO 8
CNK209I xxx PRIMARY AND yyy SECONDARY
Explanation: The BLKSIZE specified for the indicated
ddname TRACKS ALLOCATED, zzz
input or output DD statement did not allow 4 bytes for
USED
the BDW, 4 bytes for the RDW plus 1 byte of data.
Explanation: This message indicates that DB2 Sort
System action: Processing stops.
needed to request one or more secondary allocations
User response: Correct the BLKSIZE specification and for SORTOUT. xxx is the number of tracks that were
resubmit the job. initially allocated, yyy is the total number of tracks
acquired via secondary allocation, and zzz is the total
number of tracks actually required to contain the
SORTOUT data set.
System action: None.
User response: No action is required.
CNK303E DB2SORTI DYNALLOC PARAMETER User response: Ask the system programmer who is
SYNTAX ERROR responsible for installing DB2 Sort to contact IBM
Software Support.
Explanation: The DYNALLOC parameter on a control
statement that was read from the DB2SORTI data set
contains a syntax error. CNK311E INTERNAL ERROR: INVALID
PRODUCT IDENTIFIER
System action: Processing stops.
Explanation: The parameter list that was passed to
User response: Correct the control statement and DB2 Sort from the caller is not valid.
resubmit the job.
System action: Processing stops.
User response: Ask the system programmer who is
responsible for installing DB2 Sort to contact IBM the second form which has the component parts listed
Software Support. below. Some of these components may or may not be
included in the message depending on the level of the
operating system and the availability of the information
CNK400E ddname IS AN UNINITIALIZED
within DB2 Sort.
SEQUENTIAL DISK DATA SET
EXCP'S=eee
Explanation: The input data set was allocated but
eee indicates the number of EXCPs that were
never opened for output. Therefore, there is no valid
issued for the file.
data or end-of-file mark in the data set. This condition
usually occurs when a program abends and the steps to UNIT=uuuu
create the data are bypassed. uuuu indicates the unit type on which the
data set resides.
System action: Processing stops.
DEV=dddd
User response: Write the appropriate data or
dddd indicates the device name for the file.
end-of-file mark in the data set and resubmit the job.
CHP=cccccccc,n
cccccccc indicates the channel paths that are
CNK410I xxx BYTES OF VIRTUAL STORAGE
available to the device. n is the number of PAV
AVAILABLE ABOVE THE 16-
aliases that are available.
MEGABYTE LINE, yyy BYTES
RESERVE REQUESTED, zzz BYTES VOL=vvvvvv
USED vvvvvv identifies the volume serial number of
the volume for the file.
Explanation: This message provides information about
the amount of virtual storage that was used. xxx
For certain types of sorts, DB2 Sort can dynamically
indicates the amount of virtual storage above the
allocate data sets other than sort work data sets for use
16-MB line that was available when DB2 Sort received
in the sorting process. When non-sort work data sets
control. yyy indicates the amount of virtual storage that
are used, they are collectively represented in a single
the user requested DB2 Sort to reserve above the 16-MB
CNK416I message using a ddname of "SORTWK&&"
line. zzz indicates the amount of virtual storage that
for the purpose of reporting EXCPs that were issued
was used by DB2 Sort above the 16-MB line.
against them. In the third form of the message, xxx
System action: None. provides a total of the EXCPs that were issued for
SORTWORKS or SORTING, as identified by "totalid".
User response: No action is required.
System action: None.
CNK411I nnn BYTES OF EMERGENCY SPACE User response: No action is required.
ALLOCATED ABOVE THE
16-MEGABYTE LINE
CNK417I Diagnostic text.
Explanation: nnn indicates the amount of virtual
Explanation: Diagnostic message for use by the IBM
storage above the 16-MB line that DB2 Sort has
Support Center.
reserved for use by other programs (for example, the
caller, system SVCs, or the tape management system). System action: None.
System action: None. User response: None.
User response: No action is required.
CNK418I DATASPACE(S) AND/OR ZSPACE
USED
CNK416I {access-method WAS USED FOR
ddname} {ddname: EXCP'S=eee Explanation: DB2 Sort has dynamically chosen to use
[,UNIT=uuuu][,DEV=dddd] data space or ZSPACE, or a combination of these
[,CHP=cccccccc,n][,VOL=vvvvvv]} resources during the execution of the sort. ZSPACE is a
{TOTAL OF xxx EXCP'S ISSUED FOR replacement for hiperspace. It allows native use of the
totalid} central storage resources that are available. The
ZSPACE technique eliminates the additional overhead
Explanation: This message provides summary I/O
that is produced when hiperspace is simulated by the
tuning information for input, output or sort work files
operating system in a z/Architecture® environment. It
that were processed by DB2 Sort. The first form is used
provides superior CPU performance and reduced
when an access method other than EXCP is used for a
system overhead compared to a conventional
file. It uses a generic term for the access method, such
hiperspace application.
as BSAM or HIPERBATCH, and the file for which it
was used. When EXCP is used, the message takes on System action: None.
Explanation: The DYNALLOC facility is being used to User response: No action is required.
acquire sort work space, but the system currently does
not have enough disk space to satisfy the request. DB2 CNK460I ddname DATA TRUNCATED DUE TO
Sort will wait the prescribed number of minutes as DCB BLKSIZE OVERRIDE
specified by the RETRY parameter and then try the
request again. Explanation: An extended sequential data set used as
input has had its DCB BLKSIZE overridden to a
System action: None. smaller value via a JCL specification. A physical block
User response: No action is required. exceeding this overridden BLKSIZE specification was
truncated to the smaller size during input processing.
User response: No action is required. User response: Verify that the padding or truncation
that will be performed is desired for this application.
Refer to the CNK108I and CNK110I messages that
provide the input and output record lengths. If the
padding or truncation is not desired, modify the
LRECL specification before resubmitting the job.
Procedure
Tip: If you can rerun the problem step, add a DB2SORTI DD statement followed by
the DEBUG parameter, for example:
//DB2SORTI DD *
DEBUG
73
You can add and copy DB2 entries to the associated list. When you
add or copy DB2 entries to the associated list, the entries are
associated with DB2 Sort.
Master list
The list of all DB2 entries that are defined but are not associated
with DB2 Sort. Tools Customizer obtains information about these
DB2 entries either from entries that were created manually or from
the customizations of other products that were discovered. If you
remove a DB2 entry from the associated list, the DB2 entry is
added to the master list. When you create a new DB2 entry, it is
added to the master list, and when you associate the new entry
with DB2 Sort, it is removed from the master list and added to the
associated list. The master list is displayed on the Associate a DB2
Entry for Product panel.
If the associated list does not have the DB2 entries on which you want to
customize DB2 Sort, you can associate existing entries from the master list
to the associated list.
You can create new DB2 entries and copy existing entries to the master list.
High-level qualifier
The high-level qualifier is considered to be all of the qualifiers except the
lowest level qualifier. A high-level qualifier includes a mid-level qualifier.
Product parameters
Parameters that are specific to DB2 Sort. These parameters are defined by
DB2 Sort and are stored in a data member that is defined by DB2 Sort.
DB2 parameters
Parameters for a DB2 entry. These parameters are defined by Tools
Customizer and are stored in a DB2 parameter data member.
Status type
Product, LPAR, and DB2 entry status type
After you specify the product that you want to customize, the
product, the LPAR, and the DB2 entries have a status. The status is
partly based on whether required parameters are defined. For
some products, LPAR parameters or DB2 parameters might not be
required. In these cases, the status is Not Required.
To customize DB2 Sort, all of the required parameters must be
defined.
If required parameters for the the product parameters or DB2
parameters are not defined, the status of the parameters is
Incomplete. Define values for parameters by manually editing
them or by generating the customization jobs and specifying values
for all of the required parameters that are displayed on the panels.
When values for all of the required parameters are defined, the
status is Ready to Customize. Customization jobs can be generated
only when all of the required parameters are defined and the
status is Ready to Customize or Customized for the product
parameters and DB2 parameters for the DB2 entries on which DB2
Sort will be customized.
The following table shows the meaning of the status types. Each
status is defined differently for each type of parameter.
Related tasks:
“Creating and associating DB2 entries” on page 40
DB2 entries are optional for DB2 Sort. You can create new DB2 entries and
associate them with DB2 Sort.
“Copying DB2 entries” on page 47
You can copy associated and not associated DB2 entries to other DB2 entries or to
new DB2 entries.
“Removing DB2 entries” on page 49
You can remove DB2 entries from the associated list.
Tools Customizer requires that the following data sets exist during the
customization process. If the data sets do not exist, Tools Customizer automatically
allocates them.
Tools Customizer allocates the data sets for the discover output, the data store, and
the customization library with the attributes that are shown in the following table:
Table 14. Data set attributes for allocating the Discover output, data store, and
customization library data sets
Record Record Data set
Data set Organization format length Block size name type
Discover PO Variable 16383 32760 LIBRARY
output data block
set
Restrictions:
v Multiple users cannot simultaneously share the discover output data set, data
store data set, Tools Customizer metadata library, and metadata library.
v You cannot share the data store data set across multiple LPARs with shared
DASD or copy the data store data set to another LPAR. Tools Customizer creates
many cross-references between product and DB2 associations. Therefore, if you
share or copy the data store data set, member names that are empty or that do
not exist might be generated.
This material may be available from IBM in other languages. However, you may be
required to own a copy of the product or product version in that language in order
to access it.
IBM may not offer the products, services, or features discussed in this document in
other countries. Consult your local IBM representative for information on the
products and services currently available in your area. Any reference to an IBM
product, program, or service is not intended to state or imply that only that IBM
product, program, or service may be used. Any functionally equivalent product,
program, or service that does not infringe any IBM intellectual property right may
be used instead. However, it is the user's responsibility to evaluate and verify the
operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter
described in this document. The furnishing of this document does not give you
any license to these patents. You can send license inquiries, in writing, to:
For license inquiries regarding double-byte (DBCS) information, contact the IBM
Intellectual Property Department in your country or send inquiries, in writing, to:
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS
FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or
implied warranties in certain transactions, therefore, this statement may not apply
to you.
79
Any references in this information to non-IBM Web sites are provided for
convenience only and do not in any manner serve as an endorsement of those Web
sites. The materials at those Web sites are not part of the materials for this IBM
product and use of those Web sites is at your own risk.
IBM may use or distribute any of the information you supply in any way it
believes appropriate without incurring any obligation to you.
Licensees of this program who wish to have information about it for the purpose
of enabling: (i) the exchange of information between independently created
programs and other programs (including this one) and (ii) the mutual use of the
information which has been exchanged, should contact:
IBM Corporation
J64A/G4
555 Bailey Avenue
San Jose, CA 95141-1003
U.S.A.
The licensed program described in this information and all licensed material
available for it are provided by IBM under terms of the IBM Customer Agreement,
IBM International Program License Agreement, or any equivalent agreement
between us.
All statements regarding IBM's future direction or intent are subject to change or
withdrawal without notice, and represent goals and objectives only.
COPYRIGHT LICENSE:
Each copy or any portion of these sample programs or any derivative work, must
include a copyright notice as follows:
© (your company name) (year). Portions of this code are derived from IBM Corp.
Sample Programs. © Copyright IBM Corp. _enter the year or years_. All rights
reserved.
If you are viewing this information softcopy, the photographs and color
illustrations may not appear.
Trademarks
IBM, the IBM logo, and ibm.com® are trademarks or registered trademarks of
International Business Machines Corp., registered in many jurisdictions worldwide.
Other product and service names might be trademarks of IBM or other companies.
A current list of IBM trademarks is available on the web at "Copyright and
trademark information" at http://www.ibm.com/legal/copytrade.html.
Other company, product, and service names may be trademarks or service marks
of others.
This Software Offering does not use cookies or other technologies to collect
personally identifiable information.
If the configurations deployed for this Software Offering provide you as customer
the ability to collect personally identifiable information from end users via cookies
and other technologies, you should seek your own legal advice about any laws
applicable to such data collection, including any requirements for notice and
consent.
For more information about the use of various technologies, including cookies, for
these purposes, see IBM’s Privacy Policy at http://www.ibm.com/privacy and the
section titled "Cookies, Web Beacons, and Other Technologies" in IBM’s Online
Privacy Statement at http://www.ibm.com/privacy/details. Also, see the "IBM
Software Products and Software-as-a-Service Privacy Statement" at
http://www.ibm.com/software/info/product-privacy.
Notices 81
82 IBM DB2 Sort for z/OS User's Guide
Index
A customization (continued)
DB2 data sharing members (continued)
customization (continued)
Incomplete status 18, 73
accessibility copying 47 job sort order 45
overview 8 creating 40 jobs
accessing DB2 Sort libraries 52 DB2 entries 18, 73 deleting 50
activating DB2 Sort 27 adding 40 displaying 50
associating 40 maintaining 50
copying 47 renaming 50
C creating 40 sort order 45
changing display options 32 defining 45 submitting 45, 50
components 6 deleting 49 LPARs 51
cookie policy 79, 81 generating jobs for 45 maintaining jobs 50
Copy DB2 Entries panel 47 removing 49 master list
customization selecting 45 adding DB2 entries 40
associated list specifying 45 Associate DB2 Entry for Product
adding DB2 entries 40 unassociating 49 panel 40
overview 18, 73 DB2 group attach field overview 18, 73
associating DB2 entries 40 specifying 29 maximizing information panels 32
browsing parameters 47 DB2 group attach names metadata libraries
changing display options 32 adding 40 specifying 37
changing parameters 33 associating 40 metadata library
component 18, 73 copying 47 overview 21, 76
copying DB2 entries 47 creating 40 specifying 29
Create a DB2 Entry panel 40 DB2 parameters modifying parameters 33
creating DB2 entries 40 defining 43 modifying settings 29
customization jobs editing 43 multiple instances 29
deleting 50 DB2 Parameters panel 43 multiple-LPAR environment 51
displaying 50 DB2 subsystems Not Required status 18, 73
generating 45 adding 40 options 32
maintaining 50 associating 40 panel display options 32
regenerating 45 copying 47 panels
renaming 50 creating 40 Associate DB2 Entry for
sort sequence 45 defining DB2 parameters 43 Product 40
submitting 45, 50 defining parameters 41, 45 Create a DB2 Entry 40
customization library defining product parameters 42 Customizer Workplace 45
deleting jobs 50 deleting DB2 entries 49 DB2 Parameters 43
maintaining 50 deleting jobs 36 Discover Customized Product
overview 21, 76 Discover Customized Product Information 38
recustomizing 50 Information panel 38 Finish Product Customization 45
renaming jobs 50 Discover EXEC Product Parameters 42
customization library qualifier customizing a new version of a Specify the Metadata Library 37
specifying 29 product 33, 34 parameters
Customized status 18, 73 overview 21, 76 browsing 47
Customizer Workplace panel 45 retrieving product information defining 41, 45
customizing a new version of a automatically 38 viewing 47
product 33 Discovered status 18, 73 preparing to use Tools
customizing a product for the first discovering previous versions 34 Customizer 29
time 33 discovering product information 38 product 18, 73
customizing settings 29 display options 32 product parameters
data sets displaying jobs 50 changing 36
customization library 21, 76 displaying panel text 32 defining 42
data store 21, 76 editing parameters 33 editing 36, 42
Discover EXEC library 21, 76 editing product parameters 42 modifying 36
metadata library 21, 76 Errors in Customization status 18, 73 Product Parameters panel 42
data store Finish Product Customization Ready to Customize status 18, 73
overview 21, 76 panel 45 recustomization 33, 36
data store data set first-time 33 recustomizing 36
specifying 29 first-time customization 33 recustomizing a product 33
DB2 data sharing members generating jobs 45 removing DB2 entries 49
adding 40 hiding panel text 32 roadmaps 33
associating 40 high-level qualifier 18, 73 customizing for the first time 33
83
customization (continued)
roadmaps (continued)
H R
first-time customization 33 hiding panel text 32 reader comment form 7
reustomizing 36 REGION parameter 2, 23
Specify the Metadata Library roadmaps
panel 37 I customizing for the first time
first-time customization 33
33
specifying data sets 29 Installation Verification Program -
specifying metadata libraries 37 runtime considerations 23
IVP 8, 53
starting Tools Customizer 28 runtime parameters
Installation Verification Program (IVP)
status types DYNALLOC 23
overview 53
Customized 18, 73 OPTMODE 8, 23
report generation 54
Discovered 18, 73 TUNEMSG 23
using 54
Errors in Customization 18, 73 inter-regional parallelism 2, 5, 8
Incomplete 18, 73 intra-regional parallelism 2, 5
Not Required 18, 73 IVP - Installation Verification Program 8, S
Ready to Customize 18, 73 53 scenarios 6
submitting jobs 45 SCNKLINK - DB2 Sort library 52
terminology 18, 73 SCNKLPA - DB2 Sort library 52
user job card settings
specifying 29
L screen readers and magnifiers 8
sensitivity to paging activity option 16
viewing parameters 47 legal notices
service information 7
customization library cookie policy 79, 81
Sort Capacity Exceeded error 2
overview 21, 76 notices 79
sort processing 2
customization library qualifier programming interface
sort work space usage 2
specifying 29 information 79
SORTNUM parameter 2, 27
customizing settings 29 trademarks 79, 81
specifying data sets 29
summary of changes 8
support information 7
D M
data store maximizing information on panels 32
overview 21, 76 memory usage optimization 2
message format 57
T
data store data set technotes 7
specifying 29 messages
Tools Customizer 6
DB2 group attach field overview 57
associated list
specifying 29 metadata library
adding DB2 entries 40
DB2 Sort - accessing libraries 52 overview 21, 76
overview 18, 73
DB2 Sort - activating 27 specifying 29
associating DB2 entries 40
DB2 Sort - scenarios 6 modifying settings 29
browsing parameters 47
DB2 Sort libraries changing display options 32
SCNKLINK 52 component 18, 73
SCNKLPA 52 N Copy DB2 Entries panel 47
DB2SORT subsystem parameter 23, 27 notices 79 copying DB2 entries 47
DB2SORTI 23, 70 Create a DB2 Entry panel 40
DEBUG parameter 70 creating DB2 entries 40
default installation options 16
diagnostic information
O customization jobs
deleting 50
gathering 70 optimization mode option 16
displaying 50
Discover EXEC options 32
generating 45
overview 21, 76 OPTMODE
maintaining 50
display options 32 installation option 8, 16
renaming 50
displaying panel text 32 runtime parameter 8, 23
sort sequence 45
documentation overview 1
submitting 45, 50
accessing 7 customization library
sending feedback 7 deleting jobs 50
documentation changes 8 P maintaining 50
DYNALLOC runtime parameter 23 PAGEMON recustomizing 50
dynamic sort work allocation installation option 16 renaming jobs 50
installation options 16 panel display options 32 customization library qualifier
runtime parameter 23 panels specifying 29
Copy DB2 Entries 47 Customized status 18, 73
preparing to use Tools Customizer 29 Customizer Workplace panel 45
F problems customizing a new version of a
first-time customization 33 diagnostic information about 70 product 33, 34
functions process flow overview 5 customizing a product for the first
overview 2 programming interface information 79 time 33
data sets
customization library 21, 76
Index 85
86 IBM DB2 Sort for z/OS User's Guide
Printed in USA
SC19-4387-00