Previous Topic: Example 1: Modifying User VariablesNext Topic: Example 3: Modifying User and Profile Session Variables


Example 2: Modifying Profile Variables

An administrator notices that some of the profiles have PA3 assigned as the command key. The administrator uses the following control statements to change these profiles so that they have PF12 assigned as the command key.

EXTRACT GIVING(PA3PROFS) PROFILE AND NO SESSIONS (PIDXESCK(PA3)) 
UPDATE USING(PA3PROFS) (PIDXESCK(PF12))

The EXTRACT statement produces the extract file named PA3PROFS, which contains the profile definition for each profile that has a command key of PA3. The UPDATE statement changes the value of the command key to PF12 for each of the profile records.