Common commands for most objects
This table lists commands that can work on most objects in alphabetical order.
Commands identified by (Q) are shipped with public authority *EXCLUDE. Commands shipped with public authority *EXCLUDE shows which IBM-supplied user profiles are authorized to the command. The security officer can grant *USE authority to others.
| Command | Referenced object | Authority needed | |
|---|---|---|---|
| For object | For library | ||
| ALCOBJ 1,2,11 | Object | *OBJOPR | *EXECUTE |
| ANZOBJCVN (Q) 20 | |||
| ANZUSROBJ 20 | |||
| CHGOBJAUD 18 | ASP Device (if specified) | *USE | |
| CHGOBJD 3 | Object, if it is a file | *OBJOPR, *OBJMGT | *EXECUTE |
| Object, if it is not a file | *OBJMGT | *EXECUTE | |
| CHGOBJOWN 3,4,36 | Object | *OBJEXIST | *EXECUTE |
| Object (if file, library, subsystem description) | *OBJOPR, *OBJEXIST | *EXECUTE | |
| Object (if *AUTL ) | Ownership or *ALLOBJ | *EXECUTE | |
| Old user profile | *DLT | *EXECUTE | |
| New user profile | *ADD | *EXECUTE | |
| ASP Device (if specified) | *USE | ||
| CHGOBJPGP 3,36 | Object | *OBJEXIST | *EXECUTE |
| Object (if file, library, subsystem description) | *OBJOPR, *OBJEXIST | *EXECUTE | |
| Object (if *AUTL ) | Ownership and *OBJEXIST, or *ALLOBJ | *EXECUTE | |
| Old user profile | *DLT | ||
| New user profile | *ADD | ||
| ASP Device (if specified) | *USE | ||
| CHKOBJ 3 | Object | Authority specified by AUT parameter 14 | *EXECUTE |
| CPROBJ | Object | *OBJMGT | *EXECUTE |
| CHKOBJITG 11(Q) | |||
| CRTDUPOBJ 3,9,11,21 | New object | *USE, *ADD | |
| Object being copied, if it is an *AUTL | *AUTLMGT | *USE, *ADD | |
| Object being copied, all other types | *OBJMGT, *USE | *USE | |
| CRTSAVF command (if the object is a save file) | *OBJOPR | ||
| ASP Device (if specified) | *USE | ||
| DCPOBJ | Object | *USE | *EXECUTE |
| DLCOBJ 1,11 | Object | *OBJOPR | *EXECUTE |
| DLTOBJ 35 | Object | *OBJEXIST | *EXECUTE |
| ASP Device (if specified) | *USE | ||
| DMPOBJ (Q) 3 | Object | *OBJOPR, *READ | *EXECUTE |
| DMPSYSOBJ (Q) | Object | *OBJOPR, *READ | *EXECUTE |
| DSPOBJAUT 3 | Object (to see all authority information) 36 | *OBJMGT or *ALLOBJ special authority or ownership | *EXECUTE |
| Output file | Refer to the general rules. | Refer to the general rules. | |
| ASP Device (if specified) 36 | *USE | ||
| DSPOBJD 2, 28 | Output file | Refer to the general rules. | Refer to the general rules. |
| Object | Some authority other than *EXCLUDE | *EXECUTE | |
| ASP Device (if specified) | *EXECUTE | ||
| EDTOBJAUT 3,5,6,15,36 | Object | *OBJMGT | *EXECUTE |
| Object (if file) | *OBJOPR, *OBJMGT | *EXECUTE | |
| *AUTL, if used to secure object | Not *EXCLUDE | ||
| ASP Device (if specified) | *USE | ||
| ENDSAVSYNC10 | |||
| GRTOBJAUT 3,5,6,15,36 | Object | *OBJMGT | *EXECUTE |
| Object (if file) | *OBJOPR, *OBJMGT | *EXECUTE | |
| *AUTL, if used to secure object | Not *EXCLUDE | ||
| ASP Device (if specified) | *USE | ||
| Reference ASP Device (if specified) | *EXECUTE | ||
| Reference object | *OBJMGT or Ownership | *EXECUTE | |
| MOVOBJ 3,7,12 | Object | *OBJMGT | |
| Object (if *FILE) | *ADD, *DLT, *EXECUTE | ||
| Object (not *FILE), | *DLT, *EXECUTE | ||
| From-library | *CHANGE | ||
| To-library | *READ, *ADD | ||
| ASP Device (if specified) | *USE | ||
| PRTADPOBJ 26(Q) | |||
| PRTPUBAUT 26 | |||
| PRTUSROBJ 26 | |||
| PRTPVTAUT 26 | |||
| RCLDBXREF | |||
| RCLOBJOWN (Q) | |||
| RCLSTG (Q) | |||
| RCLTMPSTG (Q) | Object | *OBJMGT | *EXECUTE |
| RMVDFRID (Q) 10 | |||
| RNMOBJ 3,11 | Object | *OBJMGT | *UPD, *EXECUTE |
| Object, if *AUTL | *AUTLMGT | *EXECUTE | |
| Object (if *FILE) | *OBJOPR, *OBJMGT | *UPD, *EXECUTE | |
| ASP Device (if specified) | *USE | ||
| RSTDFROBJ (Q) 10 | QSYS/QPSRLDSP printer output, if OUTPUT(*PRINT) specified | *USE | *EXECUTE |
| Output file, if specified | Refer to the general rules | Refer to the general rules | |
| QSYS/QASRRSTO field reference file for output file, if an output file is specified and does not exist | *USE | *EXECUTE | |
| RSTOBJ (Q)3,13, 31, 33 | Object, if it already exists in the library | *OBJEXIST 8 | *EXECUTE, *ADD |
| Object, if it is *CFGL, *CNNL, *CTLD, *DEVD, *LIND, or *NWID | *CHANGE and *OBJMGT | *EXECUTE | |
| Media definition | *USE | *EXECUTE | |
| Message queues being restored to library where they already exist | *OBJOPR, *OBJEXIST 8 | *EXECUTE, *ADD | |
| User profile owning objects being created | *ADD 8 | ||
| Program that adopts authority | Owner or *SECADM and *ALLOBJ special authority | *EXECUTE | |
| To-library | *EXECUTE, *ADD 8 | ||
| Library for saved object if VOL(*SAVVOL) is specified | *USE 8 | ||
| Save file | *USE | *EXECUTE | |
| RSTOBJ (Q) | Tape unit or optical unit | *USE | *EXECUTE |
| Tape (QSYSTAP) file or diskette (QSYSDKT) file | *USE 8 | *EXECUTE | |
| Optical File (OPTFILE)22 | *R | Not applicable | |
| Parent Directory of optical file (OPTFILE)22 | *X | Not applicable | |
| Path prefix of OPTFILE22 | *X | Not applicable | |
| Optical volume24 | *USE | Not applicable | |
| QSYS/QPSRLDSP printer output, if OUTPUT(*PRINT) specified | *USE | *EXECUTE | |
| Output file, if specified | Refer to the general rules. | Refer to the general rules. | |
| QSYS/QASRRSTO field reference file for output file, if an output file is specified and does not exist | *USE | *EXECUTE | |
| ASP device description25 | *USE | ||
| RSTSYSINF | Save file | *USE | *EXECUTE |
| Tape unit or optical unit | *USE | *EXECUTE | |
| Optical File (OPTFILE)22 | *R | Not applicable | |
| Parent Directory of optical file (OPTFILE)22 | *X | Not applicable | |
| Path prefix of OPTFILE22 | *X | Not applicable | |
| Optical volume24 | *USE | Not applicable | |
| RVKPUBAUT 20 | |||
| RTVOBJD 2, 29 | Object | Some authority other than *EXCLUDE | *EXECUTE |
| RVKOBJAUT 3,5,15, 27,36 | ASP Device (if specified) | *USE | |
| SAVCHGOBJ 3, 32 | Object (8) | *OBJEXIST | *EXECUTE |
| Tape unit or optical unit | *USE | *EXECUTE | |
| Save file, if empty | *USE, *ADD | *EXECUTE | |
| Save file, if records exist in it | *OBJMGT, *USE, *ADD | *EXECUTE | |
| Save active message queue | *OBJOPR, *ADD | *EXECUTE | |
| Command user space, if specified | *USE | *EXECUTE | |
| SAVCHGOBJ | Optical File (OPTFILE)22 | *RW | Not applicable |
| Parent Directory of optical file (OPTFILE)22 | *WX | Not applicable | |
| Path prefix of optical file (OPTFILE)22 | *X | Not applicable | |
| Root Directory (/) of optical volume22, 23 | *RWX | Not applicable | |
| Optical volume24 | *CHANGE | ||
| Output file, if specified | Refer to the general rules. | Refer to the general rules. | |
| QSYS/QASAVOBJ field reference file for output file, if an output file is specified and does not exist | *USE 8 | *EXECUTE | |
| QSYS/QPSAVOBJ printer output | *USE 8 | *EXECUTE | |
| ASP device description25 | *USE | ||
| SAVOBJ 3, 32 | Object | *OBJEXIST 8 | *EXECUTE |
| Media definition | *USE | *EXECUTE | |
| Tape unit or optical unit | *USE | *EXECUTE | |
| Save file, if empty | *USE, *ADD | *EXECUTE | |
| Save file, if records exist in it | *OBJMGT, *USE, *ADD | *EXECUTE | |
| Save active message queue | *OBJOPR, *ADD | *EXECUTE | |
| Command user space, if specified | *USE | *EXECUTE | |
| SAVOBJ | Optical File (OPTFILE) 22 | *RW | Not applicable |
| Parent Directory of optical file (OPTFILE)22 | *WX | Not applicable | |
| Path prefix of OPTFILE22 | *X | Not applicable | |
| Root directory (/) of optical volume 22, 23 | *RWX | Not applicable | |
| Optical volume24 | *CHANGE | ||
| Output file, if specified | Refer to the general rules. | Refer to the general rules. | |
| QSYS/QASAVOBJ field reference file for output file, if an output file is specified and does not exist | *USE 8 | *EXECUTE | |
| QSYS/QPSAVOBJ printer output | *USE 8 | *EXECUTE | |
| ASP device description25 | *USE | ||
| SAVSTG 10 | |||
| SAVSYS 10 | Tape unit, optical unit | *USE | *EXECUTE |
| Root directory (/) of optical volume22 | *RWX | Not applicable | |
| Optical volume24 | *CHANGE | Not applicable | |
| SAVSYSINF | Media definition | *USE | *EXECUTE |
| Tape unit or optical unit | *USE | *EXECUTE | |
| Save file, if empty | *USE, *ADD | *EXECUTE | |
| Save file, if records exist in it | *OBJMGT, *USE, *ADD | *EXECUTE | |
| Optical File (OPTFILE) 22 | *RW | Not applicable | |
| Parent Directory of optical file (OPTFILE)22 | *WX | Not applicable | |
| Path prefix of OPTFILE22 | *X | Not applicable | |
| Root directory (/) of optical volume 22, 23 | *RWX | Not applicable | |
| Optical volume24 | *CHANGE | ||
| SAVRSTCHG | On the source system, same authority as required by SAVCHGOBJ command. | ||
| On the target system, same authority as required by RSTOBJ command. | |||
| ASP device description25 | *USE | ||
| SAVRSTOBJ | On the source system, same authority as required by SAVOBJ command. | ||
| On the target system, same authority as required by RSTOBJ command. | |||
| ASP device description25 | *USE | ||
| SETOBJACC | Object | *OBJOPR | *EXECUTE |
| STROBJCVN (Q)20 | |||
| STRSAVSYNC34 | |||
| WRKOBJ 19,36 | Object | Any authority | *USE |
| WRKOBJLCK | Object | *EXECUTE 37 | |
| ASP Device | *EXECUTE 37 | ||
| WRKOBJOWN 17 | User profile | *READ | *EXECUTE |
| WRKOBJPGP 17 | User profile | *READ | *EXECUTE |
| WRKOBJPVT17 | User profile | *READ | *EXECUTE |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||