Before you begin:
- Review the CFIELD profile that defines the custom field by issuing
the RLIST command. For an example, see Step 2 of Steps for defining a custom field and its attributes.
For
a list of all custom field names (CFIELD profile names) in
your RACF® database, issue the
SEARCH command for the CFIELD class.
Example: SEARCH
CLASS(CFIELD) NOMASK
- If you delegate authority to view custom field definitions (using
Step 1 of Steps for authorizing users to define custom fields), authorized users can issue the RLIST
command to review CFIELD profiles.
Perform the following steps to add data to a custom field.
- Add custom field data to the CSDATA segment of a user or group
profile.
Example 1: To add data to multiple custom fields
in the user profile of ANDREW, issue the following:
ALTUSER ANDREW CSDATA(EMPSER(256400)
ADDRESS('14 Main Street, Anywhere, IL 01234')
PHONE(555-555-5555)
CODE(FC01B2D8)
ACTIVE(NO))
Example 2: To add data to
the COMPADDR field in the profile of the ABCSUPLY group, issue the
following:
ALTGROUP ABCSUPLY CSDATA(COMPADDR('75 Industrial Way, Someplace, NC 55555'))
______________________________________________________________________
- Issue the LISTUSER or LISTGRP command to review
the contents of the CSDATA segment for the changed user or group profile.
Example
1:
LISTUSER ANDREW CSDATA NORACF
USER=ANDREW
CSDATA INFORMATION
--------------------------------------
ACTIVE= NO
HOME ADDRESS= 14 Main Street, Anywhere, IL 01234
EMPLOYEE CODE= FC01B2D8
EMPLOYEE SERIAL= 0000256400
HOME PHONE= 555-555-5555
Example 2:
LISTGRP ABCSUPLY CSDATA NORACF
INFORMATION FOR GROUP ABCSUPLY
CSDATA INFORMATION
--------------------------------------
COMPADDR= 75 Industrial Way, Someplace, NC 55555
Note: When
listing numeric custom fields, the value is always displayed using
10 integers, with leading zeros if necessary. Therefore, the length
of a displayed numeric field might not match the length as defined
by the MAXLENGTH attribute for the custom field. For example, the
listed value for EMPLOYEE SERIAL (as shown in the LISTUSER example)
is correctly listed as
0000256400 while the MAXLENGTH
attribute for EMPSER is 8 (as defined in Step
1 Example 1 of
Steps for defining a custom field and its attributes).
______________________________________________________________________
You have now added data to a custom field of a user or group profile.
If you encountered errors, see the appropriate messages documentation
and check Common errors when defining and using custom fields.