Creating objects
You can specify the authority of a new object.
When you create a new object, you can either specify the authority (AUT)
or use the default, *LIBCRTAUT. If PGMR1 enters this command:
CRTDTAARA (TESTLIB/DTA1) +
TYPE(*CHAR)
the authority for the data area looks like this:
Display Object Authority
Object . . . . . . : DTA1 Owner . . . . . . . : PGMR1
Library. . . . . : TESTLIB Primary group . . . : *NONE
Object type. . . . : *DTAARA ASP device . . . . . : *SYSBAS
Object secured by authorization list. . . . . . . . . . : OBJLST
Object
User Group Authority
*PUBLIC *AUTL
PGMR1 *ALL
The authorization list (OBJLST) comes from the CRTAUT parameter that was specified when TESTLIB was created.
If
PGMR1 enters this command:
CRTDTAARA (TESTLIB/DTA2) AUT(*CHANGE) +
TYPE(*CHAR)
the authority for the data area looks like this:
Display Object Authority
Object . . . . . . : DTA2 Owner . . . . . . . : PGMR1
Library . . . . : TESTLIB Primary group . . . : *NONE
Object type. . . . : *DTAARA ASP device . . . . . : *SYSBAS
Object secured by authorization list . . . . . . . . . : *NONE
Object
User Group Authority
*PUBLIC *CHANGE
PGMR1 *ALL