An administrator wants to add a list to all users in the accounting department. All users in the accounting department have user IDs that begin with ACCT. The list is to include the user IDs of all users who work on the ABC Corporation account. The administrator knows that all of these users have been assigned the profile ABC so the special batch variable VUSRPROF can be used to extract these users. The administrator doesn't want other users to be able to use this list. To perform these tasks, the following control statements can be executed in a batch job:
EXTRACT GIVING(ABCUSRS) USER AND NO SESSIONS (VUSRPROF(ABC))
ADD USERLIST ABCLIST ACCT---- PRIVATE TITLE('ABC Accountants') USING (ABCUSRS)
The EXTRACT statement produces the extract file named ABCUSRS, which contains the user ID of all users who have the profile ABC in their profile list. The ADD USERLIST command adds a list named ABCLIST to each user whose ID begins with ABC. The list contains all user IDs that are in the extract file ABCUSRS.
|
Copyright © 2013 CA.
All rights reserved.
|
|