Previous Topic: Example 2: Modifying Profile VariablesNext Topic: Delete User Lists


Example 3: Modifying User and Profile Session Variables

An administrator has developed a new ACL/E program named TSOSTRT, a startup program for a session with a session ID of TSO32. The administrator wants to make sure that all users and profiles that have the session TSO32 use the correct startup ACL program. The administrator uses the following control statements:

EXTRACT GIVING(ACLUSERS) USER AND MATCHING SESSIONS (UENTUSER(TSO32)) 
EXTRACT GIVING(ACLPROFS) PROFILE AND MATCHING SESSIONS (PENTUSER(TSO32)) 
UPDATE USING(ACLUSERS) (UENTSCRP(TSOSTRT)) 
UPDATE USING(ACLPROFS) (PENTSCRP(TSOSTRT))

The first EXTRACT statement produces an extract file named ACLUSERS, which contains the merged user definition and the TSO32 session record for each user with the TSO32 session. The second EXTRACT file produces the extract file named ACLPROFS, which contains the profile definition and the TSO32 session record for each profile with the TSO32 session.

The UPDATE statements use the extract files to update the administration database so that all users and profiles that have the TSO32 session have TSOSTRT specified as the startup ACL program for that session. The other user and profile sessions will not be affected because their records were not extracted.