Would like to change a userid in all APPROVER GROUPs in the MAP. Only internal approver groups are used. What is a faster way to do this change other then going through each approver group one at a time through the panels?
Release : all
Use the Batch SCL BUILD / DELETE / DEFINE SCL method.
First you use the BUILD SCL command. Select all Approver Groups and all Environments. This is a sample
BUILD SCL FOR APPROVER GROUP '*'
FROM ENVIRONMENT '*'
TO DSNAME '????.CNTL' MEMBER 'BUILDSCL' REPLACE
This will produce DEFINE SCL for all Approver Groups in the dataset/member specified.
Edit the member that was produced. You can find all occurrences of the userid to be changed. In this example we want to change USER1 to USER2.
Change the user id in the define to add the new userid.
DEFINE APPROVER GROUP 'TEST'
TO ENVIRONMENT 'ENV1'
DISQUALIFICATION IS "N"
QUORUM SIZE IS 1
APPROVER = (USER1,REQUIRED)
Change USER1 to USER2 to add USER2 to the group test. Note the define adds users it does not remove users.
Then create a DELETE APPROVER GROUP command to remove user1.
DELETE APPROVER GROUP 'TEST'
FROM ENVIRONMENT 'ENV1'
APPROVER = (USER1)
So the DEFINE APPROVER GROUP will add the new userid to the existing APPROVER GROUP. The DELETE APPROVER GROUP will remove specified APPROVERS from the existing approver group. The entire approver group will only be deleted if you do not specify and APPROVER clause in the delete APPROVER GROUP SCL.
After you have edited the DEFINE SCL and added DELETE SCL as required run this SCL.