Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Object Primary Group (CHGOBJPGP) command changes the object's primary group from one user to another. The owner's and other users' private authorities to the object do not change.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OBJ | Object | Qualified object name | Required, Positional 1 |
Qualifier 1: Object | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OBJTYPE | Object type | *ALRTBL, *AUTL, *BNDDIR, *CFGL, *CHTFMT, *CLD, *CLS, *CMD, *CNNL, *COSD, *CRG, *CRQD, *CSI, *CSPMAP, *CSPTBL, *CTLD, *DEVD, *DTAARA, *DTADCT, *DTAQ, *EDTD, *FCT, *FILE, *FNTRSC, *FNTTBL, *FORMDF, *FTR, *GSS, *IGCDCT, *IMGCLG, *IPXD, *JOBD, *JOBQ, *JRN, *JRNRCV, *LIB, *LIND, *LOCALE, *M36, *M36CFG, *MEDDFN, *MENU, *MGTCOL, *MODD, *MODULE, *MSGF, *MSGQ, *NODGRP, *NODL, *NTBD, *NWID, *NWSCFG, *NWSD, *ORTBL, *OUTQ, *OVL, *PAGDFN, *PAGSEG, *PDFMAP, *PDG, *PGM, *PNLGRP, *PRDAVL, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *RCT, *S36, *SBSD, *SCHIDX, *SPADCT, *SQLPKG, *SQLUDT, *SRVPGM, *SSND, *SVRSTG, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST | Required, Positional 2 |
ASPDEV | ASP device | Name, *, *SYSBAS | Optional |
NEWPGP | New primary group | Name, *NONE | Required, Positional 3 |
PGPAUT | New primary group authority | *OLDPGP, *PRIVATE, *ALL, *CHANGE, *USE, *EXCLUDE | Optional |
RVKOLDAUT | Revoke old authority | *YES, *NO | Optional |
Top |
Specifies the object that is to have its primary group changed.
This is a required parameter.
Note: A library name can be specified to ensure that the correct object has its primary group changed.
Qualifier 2: Library
Top |
Specifies the object type of the object whose primary group is to be changed. For more information, refer to the OBJTYPE parameter description in "Commonly used parameters: Expanded descriptions" in CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
This is a required parameter.
Top |
Specifies the auxiliary storage pool (ASP) device name where the library that contains the object (OBJ parameter) is located. If the object's library resides in an ASP that is not part of the library name space associated with the job, this parameter must be specified to ensure the correct object is used as the target of this command's operation.
Top |
Specifies the user who is to be the new primary group for the object. The user profile must already exist when this command is run, and must have a group identifier (or gid) assigned to it.
This is a required parameter.
Top |
Specifies what authority the new primary group has to the object.
Top |
Specifies whether the authorities for the current primary group are revoked when the primary group is changed to the user specified for the New primary group (NEWPGP) parameter.
Top |
CHGOBJPGP OBJ(USERLIB/PROGRAM1) OBJTYPE(*PGM) NEWPGP(ANN) PGPAUT(*CHANGE)
This command changes the primary group for the program named PROGRAM1, located in the user library USERLIB, to the group named ANN. The new primary group has *CHANGE authority to the object. The authority is revoked from the current primary group.
Top |
*ESCAPE Messages
Top |