File commands
This table lists the specific authorities required for the file commands.
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 | ||
ADDICFDEVE | ICF file | *OBJOPR, *OBJMGT | *EXECUTE |
ADDLFM | Logical file | *OBJOPR, *OBJMGT or *OBJALTER | *EXECUTE, *ADD |
File referenced in DTAMBRS parameter, when logical file is keyed | *OBJOPR, *OBJMGT or *OBJALTER | *EXECUTE | |
File referenced in DTAMBRS parameter, when logical file is not keyed | *OBJOPR | *EXECUTE | |
ADDPFCST | Dependent file, if TYPE(*REFCST) is specified | *OBJMGT or *OBJALTER | *EXECUTE |
Parent file, if TYPE(*REFCST) is specified | *OBJMGT or *OBJREF | *EXECUTE | |
File, if TYPE(*UNQCST) or TYPE(*PRIKEY) is specified | *OBJMGT | *EXECUTE | |
ADDPFM | Physical file | *OBJOPR, *OBJMGT or *OBJALTER | *EXECUTE, *ADD |
ADDPFTRG | Physical file, to insert trigger | *OBJALTER, *OBJMGT, *READ, *OBJOPR | *EXECUTE |
Physical file, to delete trigger | *OBJALTER, *OBJMGT, *READ, *OBJOPR | *EXECUTE | |
Physical file, to update trigger | *OBJALTER, *OBJMGT, *READ, *OBJOPR | *EXECUTE | |
Trigger program | *EXECUTE | *EXECUTE | |
CHGDDMF | DDM file | *OBJOPR, *OBJMGT | *EXECUTE |
Device description 7 | *CHANGE | ||
CHGDKTF | Diskette file | *OBJOPR, *OBJMGT | *EXECUTE |
Device if device name specified in the command | *OBJOPR | *EXECUTE | |
CHGDSPF | Display file | *OBJOPR, *OBJMGT | *EXECUTE |
Device if device name specified | *OBJOPR | *EXECUTE | |
CHGDTA | Data file | *OBJOPR, *ADD, *UPD, *DLT | *EXECUTE |
Program | *USE | *EXECUTE | |
Display file | *USE | *EXECUTE | |
CHGICFDEVE | ICF file | *OBJOPR, *OBJMGT | *EXECUTE |
CHGICFF | ICF file | *OBJOPR, *OBJMGT | *EXECUTE |
CHGLF | Logical file | *OBJMGT or *OBJALTER | *EXECUTE |
CHGLFM | Logical file | *OBJMGT or *OBJALTER | *EXECUTE |
CHGPF | Physical file | *OBJMGT or *OBJALTER | *EXECUTE |
CHGPFCST | Dependent file | *OBJMGT or *OBJALTER | *EXECUTE |
CHGPFM | Physical file | *OBJMGT or *OBJALTER | *EXECUTE |
CHGPFTRG | Physical file | *OBJMGT or *OBJALTER | *EXECUTE |
CHGPRTF | Printer output | *OBJOPR, *OBJMGT | *EXECUTE |
Device if device name specified | *OBJOPR | *EXECUTE | |
CHGSAVF | Save file | *OBJOPR, and (*OBJMGT or *OBJALTER). | *EXECUTE |
CHGSRCPF | Source physical file | *OBJMGT or *OBJALTER | *EXECUTE |
CHGTAPF | Tape file | *OBJOPR, *OBJMGT | *EXECUTE |
Device if device name specified | *OBJOPR | *EXECUTE | |
CLRPFM | Physical file | *OBJOPR, *OBJMGT or *OBJALTER, *DLT | *EXECUTE |
CLRSAVF | Save file | *OBJOPR, *OBJMGT | *EXECUTE |
CPYF | From-file | *OBJOPR, *READ | *EXECUTE |
To-file (device file) | *OBJOPR, *READ | *EXECUTE | |
To-file (physical file) | Refer to the general rules. | Refer to the general rules. | |
Based-on file if from-file is logical file | *READ | *EXECUTE | |
CPYFRMDKT | From-file | *OBJOPR, *READ | *EXECUTE |
To-file (device file) | *OBJOPR, *READ | *EXECUTE | |
To-file (physical file) | Refer to the general rules. | Refer to the general rules. | |
CPYFRMIMPF | From-file | *OBJOPR, *READ | *USE |
To-file (device file) | *OBJOPR, *READ | *USE | |
To-file (physical file) | Refer to the general rules. | Refer to the general rules. | |
Based-on file if from-file is logical file | *READ | *USE | |
command CRTDDMF | *USE | *USE | |
CPYFRMQRYF 1 | From-file | *OBJOPR, *READ | *EXECUTE |
To-file (device file) | *OBJOPR, *READ | *EXECUTE | |
To-file (physical file) | Refer to the general rules. | Refer to the general rules. | |
CPYFRMSTMF | Stream file | *R | |
Directories in stream file path name prefix | *X | ||
Target database file, if MBROPT(*ADD) specified | *WX | *X | |
Target database file, if MBROPT(*REPLACE or *NONE) specified | *WX, *OBJMGT | *X | |
Target database file, if new member created | *WX | *X, *ADD | |
Conversion table *TBL used to translate data | *R | *X | |
Target save file exists | *RWX, *OBJMGT | *X | |
Target save file is created | *RWX | ||
CPYFRMTAP | From-file | *OBJOPR, *READ | *EXECUTE |
To-file (device file) | *OBJOPR, *READ | *EXECUTE | |
To-file (physical file) | Refer to the general rules. | Refer to the general rules. | |
CPYSRCF | From-file | *OBJOPR, *READ | *EXECUTE |
To-file (device file) | *OBJOPR, *READ | *EXECUTE | |
To-file (physical file) | Refer to the general rules. | Refer to the general rules. | |
CPYTODKT | To-file and from-file | *OBJOPR, *READ | *EXECUTE |
Device if device name specified on the command | *OBJOPR, *READ | *EXECUTE | |
Based-on physical file if from-file is logical file | *READ | *EXECUTE | |
CPYTOIMPF | From-file | *OBJOPR, *READ | *USE |
To-file (device file) | *OBJOPR, *READ | *USE | |
To-file (physical file) | Refer to the general rules. | Refer to the general rules. | |
Based-on file if from-file is logical file | *READ | *USE | |
command CRTDDMF | *USE | *USE | |
CPYTOSTMF | Database file or save file | *RX | *X |
Stream file, if it already exists | *W | ||
Stream file parent directory, if the stream file does not exist | *WX | ||
Stream file path name prefix | *X | ||
Database file and stream file, if AUT(*FILE) or AUT(*INDIRFILE) is specified | *OBJMGT | ||
Conversion table *TBL used to translate data | *R | *X | |
CPYTOTAP | To-file and from file | *OBJOPR, *READ | *EXECUTE |
Device if device name is specified | *OBJOPR, *READ | *EXECUTE | |
Based-on physical file if from-file is logical file | *READ | *EXECUTE | |
CRTDDMF | DDM file: REPLACE(*NO) | *READ, *ADD | |
DDM file: REPLACE(*YES) | Refer to the general rules. | *READ, *ADD | |
Device description 7 | *CHANGE | ||
CRTDKTF | Device if device name is specified | *OBJOPR | *EXECUTE |
Diskette file: REPLACE(*NO) | *READ, *ADD, *EXECUTE | ||
Diskette file: REPLACE(*YES) | Refer to the general rules. | *READ, *ADD, *EXECUTE | |
CRTDSPF | Source file | *USE | *EXECUTE |
Device if device name is specified | *OBJOPR | *EXECUTE | |
File specified in REF and REFFLD keywords | *OBJOPR | *EXECUTE | |
Display file: REPLACE(*NO) | *READ, *ADD, *EXECUTE | ||
Display file: REPLACE(*YES) | Refer to the general rules. | *READ, *ADD, *EXECUTE | |
CRTICFF | Source file | *USE | *EXECUTE |
File specified in REF and REFFLD keywords | *OBJOPR | *EXECUTE | |
ICF file: REPLACE(*NO) | *READ, *ADD | ||
ICF file: REPLACE(*YES) | Refer to the general rules. | *READ, *ADD | |
CRTLF | Source file | *USE | *EXECUTE |
File specified on PFILE or JFILE keyword, when logical file is keyed | *OBJOPR, *OBJMGT or *OBJALTER | *EXECUTE | |
File specified on PFILE or JFILE keyword, when logical file is not keyed | *OBJOPR | *EXECUTE | |
Files specified on FORMAT and REFACCPTH keywords | *OBJOPR | *EXECUTE | |
Tables specified in the ALTSEQ keyword | *OBJOPR | *EXECUTE | |
Logical file | *EXECUTE, *ADD | ||
File referenced in DTAMBRS parameter, when logical file is keyed | *OBJOPR, *OBJMGT or *OBJALTER | *EXECUTE | |
File referenced in DTAMBRS parameter, when logical file is not keyed | *OBJOPR | *EXECUTE | |
CRTPF | Source file | *USE | *EXECUTE |
Files specified in FORMAT and REFFLD keywords and tables specified in the ALTSEQ keyword | *OBJOPR | *EXECUTE | |
Physical file | *EXECUTE, *ADD | ||
CRTPRTF | Source file | *USE | *EXECUTE |
Device if device name is specified | *OBJOPR | *EXECUTE | |
Files specified in the REF and REFFLD keywords | *OBJOPR | *EXECUTE | |
Printer output: Replace(*NO) | *READ, *ADD, *EXECUTE | ||
Printer output: Replace(*YES) | Refer to the general rules. | *READ, *ADD, *EXECUTE | |
CRTSAVF | Save file | *READ, *ADD, *EXECUTE | |
CRTSRCPF | Source physical file | *READ, *ADD, *EXECUTE | |
CRTS36DSPF | To-file source file when TOMBR is not *NONE | *ALL | *CHANGE |
Source file QS36SRC | *USE | *EXECUTE | |
Display file: REPLACE(*NO) | *READ, *ADD | ||
Display file: REPLACE(*YES) | Refer to the general rules. | *READ, *ADD | |
Create Display File (CRTDSPF) command | *OBJOPR | *EXECUTE | |
CRTTAPF | Tape file: REPLACE(*NO) | *READ, *ADD | |
Tape file: REPLACE(*YES) | Refer to the general rules. | *READ, *ADD | |
Device if device name is specified | *OBJOPR | *EXECUTE | |
DLTF | File | *OBJOPR, *OBJEXIST | *EXECUTE |
DSPCPCST | Database file that has constraint pending | *OBJOPR, *READ | *EXECUTE |
DSPDBR | Database file | *OBJOPR | *EXECUTE |
Output file, if specified | Refer to the general rules. | Refer to the general rules. | |
DSPDDMF | DDM file | *OBJOPR | |
DSPDTA | Data file | *USE | *EXECUTE |
Program | *USE | *EXECUTE | |
Display file | *USE | *EXECUTE | |
DSPFD 2 | File | *OBJOPR | *EXECUTE |
Output file | Refer to the general rules. | Refer to the general rules. | |
File is a physical file and TYPE(*ALL, *MBR, OR *MBRLST) is specified | A data authority other than *EXECUTE | *EXECUTE | |
DSPFFD | File | *OBJOPR | *EXECUTE |
Output file | Refer to the general rules. | Refer to the general rules. | |
DSPPFM | Physical file | *USE | *EXECUTE |
DSPSAVF | Save file | *USE | *EXECUTE |
EDTCPCST | Data area, as specified on NFYOBJ keyword for the associated STRCMTCTL command. | *CHANGE | *EXECUTE |
Files, as specified on NFYOBJ keyword for the associated STRCMTCTL command. | *OBJOPR, *ADD | *EXECUTE | |
GENCAT | Database file | *OBJOPR and a data authority other than *EXECUTE | *EXECUTE |
INZPFM | Physical file, when RECORD(*DFT) is specified | *OBJOPR, *OBJMGT or *OBJALTER, *ADD | *EXECUTE |
Physical file, when RECORD(*DLT) is specified | *OBJOPR, *OBJMGT or *OBJALTER, *ADD, *DLT | *EXECUTE | |
MRGSRC | Target file | *CHANGE, *OBJMGT | *CHANGE |
Maintenance file | *USE | *EXECUTE | |
Root file | *USE | *EXECUTE | |
OPNDBF | Database file | *OBJOPR and a data authority other than *EXECUTE | *EXECUTE |
OPNQRYF | Database file | *OBJOPR and a data authority other than *EXECUTE | *EXECUTE |
PRTTRGPGM 11 | |||
RGZPFM | File containing member | *OBJOPR, *OBJMGT or *OBJALTER, *READ, *ADD, *UPD, *DLT, *EXECUTE | *EXECUTE |
RMVICFDEVE | ICF file | *OBJOPR, *OBJMGT | *EXECUTE |
RMVM | File containing member | *OBJEXIST, *OBJOPR | *EXECUTE |
RMVPFCST | File | *OBJMGT or *OBJALTER | *EXECUTE |
RMVPFTRG | Physical file | *OBJALTER, *OBJMGT | *EXECUTE |
RNMM | File containing member | *OBJOPR, *OBJMGT | *EXECUTE, *UPD |
RSTS36F 4 (Q) | To-file | *ALL | Refer to the general rules. |
From-file | *USE | *EXECUTE | |
Based on physical file, if file being restored is a logical (alternative) file | *CHANGE | *EXECUTE | |
Device description for diskette or tape | *USE | *EXECUTE | |
RTVMBRD | File | *USE | *EXECUTE |
SAVSAVFDTA | Tape, diskette, or optical device description | *USE | *EXECUTE |
Save file | *USE | *EXECUTE | |
Optical Save/Restore File8 (if previously exists) | *RW | Not applicable | |
Parent Directory of OPTFILE8 | *WX | Not applicable | |
Path Prefix of OPTFILE8 | *X | Not applicable | |
Root Directory (/) of Optical Volume 8,9 | *RWX | Not applicable | |
Optical Volume10 | *CHANGE | Not applicable | |
SAVS36F | From-file | *USE | *EXECUTE |
To-file, when it is a physical file | *ALL | Refer to the general rules. | |
Device file or device description | *USE | *EXECUTE | |
SAVS36LIBM | To-file, when it is a physical file | *ALL | Refer to the general rules. |
From-file | *USE | *EXECUTE | |
Device file or device description | *USE | *EXECUTE | |
STRAPF 3 | Source file | *OBJMGT, *CHANGE | *READ, *ADD |
Commands CRTPF, CRTLF, ADDPFM, ADDLFM, and RMVM | *USE | *EXECUTE | |
STRDFU 3 | Program (if create program option) | *READ, *ADD | |
Program (if change or delete program option) | *OBJEXIST | *READ, *ADD | |
File (if change or display data option) | *OBJOPR, *ADD, *UPD, *DLT | *EXECUTE | |
File (if display data option) | *READ | *EXECUTE | |
UPDDTA | File | *CHANGE | *EXECUTE |
WRKDDMF 3 | DDM file | *OBJOPR, *OBJMGT, *OBJEXIST | *READ, *ADD |
WRKF 3,5 | Files | *OBJOPR | *USE |
WRKPFCST3 | *EXECUTE | ||
|
|||
|