Merge Source (MRGSRC)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

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

Top

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
Top

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.
Top

Target member (TGTMBR)

Specifies the member into which the maintenance updates are merged.

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

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.
Top

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.
Top

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.
Top

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.
Top

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.
Top

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.
Top

Examples

None
Top

Error messages

None

Top