
Using Concatenating Datasets
7-66 User Reference
Connectivity Systems, Inc.—Copyright © 2006
Use Pursuant to Company Instructions
Using Concatenating Datasets
Description Dataset concatenation reads multiple versions of a dataset or multiple
datasets with one open. This allows you to process a number of datasets
as if they were a single dataset.
All versions of concatenated datasets must reside on the same device
type. If the datasets have different block sizes, you must read the dataset
with the largest block size first.
DSN Catalog No special entries are required.
JCL
Requirements
When using a TLBL statement or a DLBL statement, there are several
JCL requirements you must consider.
Use a separate TLBL statement or DLBL statement for each
dataset to be read. Datasets are processed in the order in which
their label statements display.
Use the same DTF name for each statement and supply the
concatenation option code for all except the last version, for
example, TLBL option code 48 and DLBL option code E.
!
WARNING:
Do not specify the concatenation code on the last label statement
in a concatenation group.
Examples The following example processes versions 1 through 5 of the
DAILY.TRANS dataset on disk with one open. The example also
processes WEEKLY.TRANS and WEEKLY.RERUN on tape with
another single open. Although there are mixed device types in the job,
they are not mixed within a single open, so the device types meet the
requirements for concatenation.
// DLBL INPUT1,'DAILY.TRANS,(E,V=5)'
// DLBL INPUT1,'DAILY.TRANS,(E,V=4)'
// DLBL INPUT1,'DAILY.TRANS,(E,V=3)'
// DLBL INPUT1,'DAILY.TRANS,(E,V=2)'
// DLBL INPUT1,'DAILY.TRANS'
// TLBL INPUT2,'WEEKLY.TRANS',,,,,,48
// TLBL INPUT2,'WEEKLY.RERUN'
// EXEC PROGRAM
When using DD statements, concatenation is automatic for all versions of
a single dataset on input. You must specify DSN=data.set.name without
specifying a particular version. When all versions of a single dataset are
concatenated, datasets are read in order from the most current version to
the oldest version.
Kommentare zu diesen Handbüchern