The WRKCTLGBRM *BKU option 3 (Copy) and the Create Control Group Based On (Q1ACRTCGBO) API have been enhanced to provide optional support to migrate control groups with GUI object omits to a control group using green screen object list with omits in release 5770-BR1 7.3 and later with the following PTFs:

This function needs to be enabled before using WRKCTLGBRM *BKU option 3 (Copy), it is not the default behavior.

To Enable:

In 5770-BR1 7.3 and 5770-BR1 7.4 run one of the following commands:

In 5770-BR2 7.4 and 7.5, and 5770-BR1 7.5 run the following command:

SETFCNBRM ACTION(*ADD) FUNCTION(MGROMIT) SCOPE(*SYS)

The SCOPE parameter also supports *JOB to only affect the current signed on job. 

During the migration BRMS internally creates a backup object lists and adds it as a backup item to the copy control group. The format of the backup lists name is Onnnnnnaaa where nnnnnn is the current job number and aaa is unique sequence identifier. 

note

Limitations To Using the Function

  • No special value support for control group entries *SAVSYS, *IBM, or *ALLDLO since these are not supported in an object or folder list.  When BRMS copies these entries, the object omits will not be copied to the new control group.

  • A control group with GUI object omits cannot be copied to a remote system when migrating to a new control group.  The new migrated control group which removed the GUI objects omits can be copied to a remote system.

Limitations To Using the Function

  • No special value support for control group entries *SAVSYS, *IBM, or *ALLDLO since these are not supported in an object or folder list.  When BRMS copies these entries, the object omits will not be copied to the new control group.

  • A control group with GUI object omits cannot be copied to a remote system when migrating to a new control group.  The new migrated control group which removed the GUI objects omits can be copied to a remote system.

Reusing a Control Group Name

  • Because the WRKCTLGBRM function does not have RENAME option, to convert a control group that contains GUI-created Omits into a new control group that uses backup object lists, you first must copy the old control group into a new control group. Next, delete the old control group. Then copy the new control group again; this time naming it the same as the original control group and delete that first copy.

Alternative Methods:

BRMS provides the following APIs to add and remove object level omits to control group entries.

When using the the Create Control Group Based On (Q1ACRTCGBO) API, a new optional parameter has been added to indicate that the copy should migrate the object omits.

Required Parameter Group:

1

New control group name

Input

Char(10)

2

Based on control group name

Input

Char(10)

3

Control group type

Input

Char(10)

4

Copy control group entries

Input

Char(1)

5

Error code

I/O

Char(*)

Optional Parameter Group:

6

Migrate to object list omit

Input

Char(1)

Default Public Authority: *USE

Threadsafe: No

Required Parameter Group

New control group name

INPUT; CHAR(10)

Specifies the name of the control group that is being created.

Based on control group name

INPUT CHAR(10)

Specifies the name of the control group that is being used to create the new control group.

Control group type

INPUT CHAR(10)

Specifies what type of control group is to be created. Backup, Archive, or Migration are the 3 types. Only Backup is currently supported.

The possible value follows:

*BKU

A backup control group will be created.

Copy control group entries

INPUT CHAR(1)

Specifies if the entries in the control group should also be copied from the based on control group.

The possible values follow:

0 

Specifies to not copy the entries.

Specifies to copy the entries.

Error code

I/O CHAR(*)

The structure in which to return error information. For the format of the structure, see Error Code Parameter.

Optional Parameter Group

Migrate to object list omit 

INPUT CHAR(1)

Specifies if the copy control group should migrate existing GUI object omits to an object list using omits based on control group.

The possible values follow:

0 

Specifies to not migrate the GUI object omits.

1 

Specifies to migrate the GUI object omits.

Error Messages

 

During the migration BRMS internally creates a backup object lists and adds it as a backup item to the copy control group. The format of the backup lists name is Onnnnnnaaa where nnnnnn is the current job number and aaa is unique sequence identifier.

note

Limitations To Using the Create Control Group Based On (Q1ACRTCGBO) API

  • No special value support for control group entries *SAVSYS, *IBM, or *ALLDLO since these are not supported in an object or folder list.  When BRMS copies these entries, the object omits will not be copied to the new control group.

  • A control group with GUI object omits cannot be copied to a remote system when migrating to a new control group.  The new migrated control group which removed the GUI objects omits can be copied to a remote system.

Limitations To Using the Create Control Group Based On (Q1ACRTCGBO) API

  • No special value support for control group entries *SAVSYS, *IBM, or *ALLDLO since these are not supported in an object or folder list.  When BRMS copies these entries, the object omits will not be copied to the new control group.

  • A control group with GUI object omits cannot be copied to a remote system when migrating to a new control group.  The new migrated control group which removed the GUI objects omits can be copied to a remote system.