Previous Topic: Example 1: Adding a UserNext Topic: Add Sessions to Users and Profiles


Example 2: Adding a Profile

An administrator wants to add a new profile named SALEPROF for the company's sales department employees. Instead of adding the profile through online administration, the administrator decides to execute a command statement in a batch job. The administrator wants all users of this profile to have an update class of B and panel language of CUA. The profile is to belong to the SALES maintenance authorization group. The appropriate variables are specified.

ADD PROFILE (SALEPROF ( PIDXUPDC(B) PIDXLANG(CUA) PIDXGRP(SALES) ))

When the ADD statement is executed, the profile named SALEPROF is added to the administration database. At this point, there are no sessions associated with the profile, and the profile contains values for the update class, panel language, and group. For information about how to add sessions to a profile, see Add Sessions to Users and Profiles. For information about how you can assign values to the profile definition variables, see Modify User and Profile Values.

Note: When you add a profile, you should immediately assign the profile to an authorization group with the ADD statement or a subsequent UPDATE statement. For information about how to use the UPDATE statement to assign a profile to a group, see Modify User and Profile Values. If you do not assign the profile to a group, the profile is assigned to the default group defined in the System Options Table.