Previous Topic: Operand ExplanationsNext Topic: Example 2: Authorizing Users to Administer a Group


Example 1: Adding a Group Profile to a User

An administrator wants to add a profile named GRP1PROF to all the users who are in a maintenance authorization group named USERGRP1. The administrator uses the following control statements:

EXTRACT GIVING(GRP1USRS) USER AND NO SESSIONS (UIDXGRP(USERGRP1)) 
ADD USERPROFILE USING(GRP1USRS) (GRP1PROF)

The EXTRACT statement produces the extract file named GRP1USRS, which contains the merged user definition for each user who is in the maintenance authorization group named USERGRP1. The ADD statement adds the profile named GRP1PROF to each user record in the extract file.