Previous Topic Next topic Print topic


REPRO

The REPRO command copies the contents of one data set to another. The data sets can have either VSAM or sequential organization.

Thus the REPRO command can:

  • Load a sequential data set to a VSAM data set.
  • Load a VSAM data set to a VSAM data set, optionally replacing records that have the same primary key values as the input records.
  • Copy a VSAM data set to a sequential data set.
  • Copy a sequential data set to a sequential data set.

Parameters:

MFJAMS supports the following parameters. They are supported as documented in the IBM documentation unless otherwise stated below:

INFILE(ddname)
Name of the DD statement, contained in the JCL for this job step, that provides the name of the data set that is to be used for input.
INDATASET(data-set-name)
Name of the data set that is to be used for input.
OUTFILE(ddname)
Name of the DD statement, contained in the JCL for this job step, that provides the name of the data set that is to be used for output.
OUTDATASET(data-set-name)
Name of the data set that is to be used for output.
FROMKEY(key)
For a VSAM KSDS only, the key of the first record to copy. Copying starts at the record with the same primary key, or the record with the nearest higher key if an exact match does not occur. Alternate indices are not used.
TOKEY(key)
For a VSAM KSDS only, the key of the last record to copy. Copying ends at the record with the same primary key, the record with the nearest higher key if an exact match does not occur, or end of file. Alternate indices are not used.
SKIP(number)
The number of records to skip before copying starts.
COUNT(number)
The number of records to copy.
REPLACE|NOREPLACE
For VSAM files only, the record in the input data set replaces/does not replace any record in the output data set that has the same primary key.
REUSE|NOREUSE
For VSAM data sets only. Specifies whether or not the target data can be opened as a reusable data set.
ERRORLIMIT(value)
The number of errors that the command will tolerate.
DBCS
This parameter is parsed, but ignored.
INSERTSHIFT((offset1 offset2) [(offset1 offset2)..])|INSERTALL
This parameter is parsed, but ignored.
MERGECAT|NOMERGECAT
This parameter is parsed, but ignored.
SKIPDBCSCHECK|NODBCSCHECK
This parameter is parsed, but ignored.
TOADDRESS
This parameter is parsed, but ignored.
VOLUMEENTRIES
This parameter is parsed, but ignored.
ENCIPHER
This parameter is parsed, but ignored.
DECIPHER
This parameter is parsed, but ignored.

Comments:

  • The following parameters are not supported: ENTRIES(entry-name [entry-name..])|LEVEL(level), FILE(ddname).
  • INFILE and INDATASET are mutually exclusive. You must specify one of them.
  • OUTFILE and OUTDATASET are mutually exclusive. You must specify one of them.
  • REPLACE and NOREPLACE are mutually exclusive. NOREPLACE is the default.
  • MFJAMS automatically adds alternate key entries to the output data set if they have been previously defined.
  • IDCAMSREPRO pads (with blanks) LSEQ input records to the minimum record length (for primary and alternate keys) for VSAM data sets.
Previous Topic Next topic Print topic