Merge Source (MRGSRC)

This command allows you to merge updates from maintenance file members into target file members.

You provide the MRGSRC command with the names of the following source files:

Root
The original version of the source file, on which the updates are based
Maintenance
The source file containing the updates to be merged into the target file
Target
The source file into which the updates from the maintenance file are merged

The MRGSRC command compares each target member and maintenance member with its corresponding root member. The results of these comparisons are used to determine the updates that have occurred.

Error messages for MRGSRC

None

Parameters

Keyword Description Choices Notes
TGTFILE Target file Qualified object name Required, Positional 1
Qualifier 1: Target file Name
Qualifier 2: Library Name, *LIBL, *CURLIB
TGTMBR Target member Name, *ALL Required, Positional 2
MAINTFILE Maintenance file Qualified object name Optional, Positional 3
Qualifier 1: Maintenance file Name, *TARGET
Qualifier 2: Library Name, *LIBL, *CURLIB
MAINTMBR Maintenance member Name, *TARGET Optional, Positional 4
ROOTFILE Root file Qualified object name Optional, Positional 5
Qualifier 1: Root file Name, *MAINT
Qualifier 2: Library Name, *LIBL, *CURLIB
ROOTMBR Root member Name, *MAINT Optional, Positional 6
SELECT Select updates *YES, *NO Optional
RPTONLY Report only *NO, *YES Optional

Target file (TGTFILE)

Specifies the source physical file into which the maintenance updates are merged.

*LIBL
Use the library list.
*CURLIB
Use the current library.
library-name
Use the specified library.
file-name
Use the specified file.

Target member (TGTMBR)

Specifies the member into which the maintenance updates are merged.

*ALL
Select all members.
member-name
Select the specified member.

Maintenance file (MAINTFILE)

Specifies the source physical file containing the updates to merge.

*LIBL
Use the library list.
*CURLIB
Use the current library.
library-name
Use the specified library.
*TARGET
Use the file specified for the target file.
file-name
Use the specified file.

Maintenance member (MAINTMBR)

Specifies the member containing the updates to merge.

*TARGET
Select the same member as is specified for the TGTMBR keyword.
member-name
Select the specified member.

Root file (ROOTFILE)

Specifies the source file on which the merge process is based.

*LIBL
Use the library list.
*CURLIB
Use the current library.
library-name
Use the specified library.
*MAINT
Use the file specified for the maintenance file.
file-name
Use the specified file.

Root member (ROOTMBR)

Specifies the source file member on which the merge process is based.

*MAINT
Select the same member as is specified for the MAINTMBR parameter. This parameter is required if TGTMBR(*ALL) is specified.
member-name
Select the specified member.

Select updates (SELECT)

Specifies whether to show the Split Merge display for selecting the maintenance updates.

*YES
Show the Split Merge display so that you can select the maintenance updates to merge into the target member. No report is generated.
*NO
Do not show the Split Merge display, and print a Merge Summary report.

Report only (RPTONLY)

Indicates whether to merge the maintenance updates into the target member or just print a Merge Summary report to show the scope of the updates.

*NO
Perform the merge and print a Merge Summary report.
*YES
Print the Merge Summary report without performing the merge.

Examples

None

Error messages

None