PRIVDEF parameter: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
mNo edit summary
 
(38 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Template:PRIVDEF parameter subtitle}}
==Summary==
==Summary==
<dl>
<dl>
Line 10: Line 11:
<dd>All
<dd>All
<dt>Introduced
<dt>Introduced
<dd><var class="product">Model 204 V6.1</var> or earlier
<dd><var class="product">Model 204 V2.1</var> or earlier
</dl>
</dl>
==Description==
==Description==
<p>The default user privileges for a public or semi-public file</p>
<p>
<p>Valid settings of PRIVDEF are (options can be summed):</p>
The default user privileges for a public or semi-public file</p>
<p>
Valid settings of <var>PRIVDEF</var> are (options can be summed):</p>
<table>
<table>
<tr><th>Setting</th><th>Allows...</th></tr>
<tr class="head"><th>Setting</th><th>Allows...</th></tr>
<tr><th align="right"><var>X'8000'</var></th><td>File manager privileges.</td></tr>
<tr><th align="right"><var>X'8000'</var></th><td>File manager privileges.</td></tr>
<tr><th align="right"><var>X'4000'</var></th><td>Record security override.</td></tr>
 
<tr><th align="right"><var>X'2000'</var></th><td>Updating of data with ad hoc requests.</td></tr>
<tr><th align="right"><var>X'4000'</var></th>
<tr><th align="right"><var>X'1000'</var></th><td>Changes, other than deletions, to internal procedures.</td></tr>
<td>[[Model 204 security features#Record security|Record security]] override.</td></tr>
<tr><th align="right"><var>X'0800'</var></th><td>Updating of data with internal procedures.</td></tr>
 
<tr><th align="right"><var>X'0400'</var></th><td>Retrieval of data with ad hoc requests.</td></tr>
<tr><th align="right"><var>X'2000'</var></th>
<tr><th align="right"><var>X'0200'</var></th><td>DISPLAY, echoing, and copying of internal procedures.</td></tr>
<td>Updating of data with ad hoc requests.</td></tr>
<tr><th align="right"><var>X'0100'</var></th><td>Retrieval of data with internal procedures.</td></tr>
 
<tr><th align="right"><var>X'0080'</var></th><td>Updating of data with external procedures.</td></tr>
<tr><th align="right"><var>X'1000'</var></th>
<tr><th align="right"><var>X'0040'</var></th><td>Retrieval of data with external procedures.</td></tr>
<td>Changes, other than deletions, to internal [[procedures|procedures]].</td></tr>
<tr><th align="right"><var>X'0020'</var></th><td>INCLUDE of internal procedures.</td></tr>
 
<tr><th align="right"><var>X'0010'</var></th><td>Definition of internal procedures.</td></tr>
<tr><th align="right"><var>X'0800'</var></th>
<tr><th align="right"><var>X'0008'</var></th><td>Deletion of internal procedures.</td></tr>
<td>Updating of data with internal procedures.</td></tr>
<tr><th align="right"><var>X'0001'</var></th><td>Access to file related parameters. The file parameter CURFILE is not affected by this setting. </td></tr>
 
<tr><th align="right"><var>X'0400'</var></th>
<td>Retrieval of data with ad hoc requests.</td></tr>
 
<tr><th align="right"><var>X'0200'</var></th>
<td><var>[[DISPLAY PROCEDURE command: Procedure text|DISPLAY]]</var>, [[LECHO parameter|echoing]], and [[COPY PROCEDURE_command|copying]] of internal procedures.</td></tr>
 
<tr><th align="right"><var>X'0100'</var></th>
<td>Retrieval of data with internal procedures.</td></tr>
 
<tr><th align="right"><var>X'0080'</var></th>
<td>Updating of data with external procedures.</td></tr>
 
<tr><th align="right"><var>X'0040'</var></th>
<td>Retrieval of data with external procedures.</td></tr>
 
<tr><th align="right"><var>X'0020'</var></th>
<td><var>[[INCLUDE command|INCLUDE]]</var> of internal procedures.</td></tr>
 
<tr><th align="right"><var>X'0010'</var></th>
<td>[[PROCEDURE command|Definition]] of internal procedures.</td></tr>
 
<tr><th align="right"><var>X'0008'</var></th>
<td>[[DELETE PROCEDURE command|Deletion]] of internal procedures.</td></tr>
 
<tr><th align="right"><var>X'0001'</var></th>
<td>Allows access (VIEW) to all file related parameters. If this bit is off, access to all file parameters, with the exception of CURFILE, is disallowed.</td></tr>
 
<tr><th colspan="2"><var>
<tr><th colspan="2"><var>
<p>For only a permanent file group:</p>
<p>For only a permanent file group:</p>
</var></th></tr>
</var></th></tr>
<tr><th align="right"><var>X'0004'</var></th><td>Updating of data with procedures from the designated procedure file.</td></tr>
<tr><th align="right"><var>X'0004'</var></th><td>Updating of data with procedures from the designated procedure file.</td></tr>
<tr><th align="right"><var>X'0002'</var></th><td>Retrieval of data with procedures from the designated procedure file.     </td></tr>
 
<tr><th align="right"><var>X'0002'</var></th><td>Retrieval of data with procedures from the designated procedure file. </td></tr>
</table>
</table>
<p>The file manager or the system manager can use the RESET PRIVDEF command to set the privilege-controlling bit of PRIVDEF to 1. The CURFILE and CURPRIV parameters are not affected by this feature and are available to all users. (For information on the transformation of PRIVDEF parameters in the password table, refer to the <var>Model&nbsp;204 File Manager's Guide</var>).</p>
<p>
<p>The parameters affected by this feature are the following:</p>
The file manager or the system manager can use the <code>RESET PRIVDEF</code> command to set the privilege-controlling bit of <var>PRIVDEF</var> to 1. For information on the transformation of <var>PRIVDEF</var> parameters in the password table, see [[Model 204 security features#Determining file and group privileges|Determining file and group privileges]].</p>
<p>
The parameters affected by this feature are the following:</p>
   
   
<p>Security-related parameters</p>
<table>
<table>
<tr><th colspan="3">Security-related parameters</th></tr>
<caption>Security-related parameters</caption>
<tr><th><var>ADDLV </var></th><td>PRIVDEF </td><td>SECTY</td></tr>
<tr><td><var>[[ADDLVL parameter|ADDLVL]]</var> </td>
<tr><th><var>LOGONENQ </var></th><td>READLVL </td><td>SELLVL</td></tr>
<td>PRIVDEF </td>
<tr><th><var>OPENCTL </var></th><td>RECSCTY </td><td>UPDTLVL</td></tr>
<td><var>[[SECTY parameter|SECTY]]</var></td></tr>
<tr><th><var>PRCLDEF</var></th><td></td><td></td></tr>
 
<tr><td><var>[[LOGONENQ parameter|LOGONENQ]]</var> </td>
<td><var>[[READLVL parameter|READLVL]]</var> </td>
<td><var>[[SELLVL parameter|SELLVL]]</var></td></tr>
<tr><td><var>[[OPENCTL parameter|OPENCTL]]</var> </td>
<td><var>[[RECSCTY parameter|RECSCTY]]</var> </td>
<td><var>[[UPDTLVL parameter|UPDTLVL]]</var></td></tr>
 
<tr><td><var>[[PRCLDEF parameter|PRCLDEF]]</var></td>
<td></td>
<td></td></tr>
</table>
</table>
<p>File size statistics parameters: </p>
 
<table>
<table>
<tr><th colspan="3">File size statistics parameters</th></tr>
<caption>File size statistics parameters</caption>
<tr><th><var>ASIZE</var></th><td>BRESERVE</td><td>FREESIZE</td></tr>
<tr><td><var>[[ASIZE parameter|ASIZE]]</var></td>
<tr><th><var>ASTRPPG</var></th><td>BSIZE </td><td>FVFPG</td></tr>
<td><var>[[BRESERVE parameter|BRESERVE]]</var></td>
<tr><th><var>ATRPG</var></th><td>CSIZE </td><td>MVFPG</td></tr>
<td><var>[[FREESIZE parameter|FREESIZE]]</var></td></tr>
<tr><th><var>BPGPMSTR</var></th><td>DPGSRES </td><td>PDSIZE</td></tr>
 
<tr><th><var>BPGPOVFL</var></th><td>DRESERVE</td><td>PDSTRPPG</td></tr>
<tr><td><var>[[ASTRPPG_parameter|ASTRPPG]]</var></td>
<tr><th><var>BRECPPG</var></th><td>DSIZE</td><td></td></tr>
<td><var>[[BSIZE_parameter|BSIZE]]</var> </td>
<td><var>[[FVFPG_parameter|FVFPG]]</var></td></tr>
 
<tr><td><var>[[ATRPG_parameter|ATRPG]]</var></td>
<td><var>[[CSIZE_parameter|CSIZE]]</var> </td>
<td><var>[[MVFPG_parameter|MVFPG]]</var></td></tr>
 
<tr><td><var>[[BPGPMSTR parameter|BPGPMSTR]]</var></td>
<td><var>[[DPGSRES parameter|DPGSRES]]</var> </td>
<td><var>[[PDSIZE parameter|PDSIZE]]</var></td></tr>
 
<tr><td><var>[[BPGPOVFL parameter|BPGPOVFL]]</var></td>
<td><var>[[DRESERVE parameter|DRESERVE]]</var></td>
<td><var>[[PDSTRPPG_parameter|PDSTRPPG]]</var></td></tr>
 
<tr><td><var>[[BRECPPG parameter|BRECPPG]]</var></td>
<td><var>[[DSIZE_parameter|DSIZE]]</var></td>
<td></td></tr>
</table>
</table>
<p>File performance statistics parameters:</p>
 
<table>
<table>
<tr><th colspan="3">File performance statistics parameters</th></tr>
<caption>File performance statistics parameters</caption>
<tr><th><var>ARETRIES </var></th><td>DPSUSED </td><td>OILEAVES</td></tr>
<tr><td><var>[[ARETRIES_parameter|ARETRIES]]</var></td>
<tr><th><var>BEXTOVFL </var></th><td>EOVFLADD </td><td>OILPACT</td></tr>
<td><var>[[DPGSUSED_parameter|DPGSUSED]]</var> </td>
<tr><th><var>BHIGHPG </var></th><td>EOVFLDEL </td><td>OINBYTES</td></tr>
<td><var>[[OILEAVES_parameter|OILEAVES]]</var></td></tr>
<tr><th><var>BLOWPG </var></th><td>EXTNADD </td><td>OINENTRY</td></tr>
 
<tr><th><var>BQLEN </var></th><td>EXTNDEL </td><td>OINODES</td></tr>
<tr><td><var>[[BEXTOVFL_parameter|BEXTOVFL]]</var></td>
<tr><th><var>BREUSE </var></th><td>HIGHSORT </td><td>OVFLADD</td></tr>
<td><var>[[EOVFLADD_parameter|EOVFLADD]]</var> </td>
<tr><th><var>BREUSED </var></th><td>MSTRADD </td><td>OVFLDEL</td></tr>
<td><var>[[OILPACT_parameter|OILPACT]]</var></td></tr>
<tr><th><var>CRETRIES </var></th><td>MSTRDEL </td><td>SPILLADD</td></tr>
 
<tr><th><var>DHIGHPG </var></th><td>OIDEPTH </td><td>SPILLDEL</td></tr>
<tr><td><var>[[BHIGHPG_parameter|BHIGHPG]]</var></td>
<td><var>[[EOVFLDEL_parameter|EOVFLDEL]]</var> </td>
<td><var>[[OINBYTES_parameter|OINBYTES]]</var></td></tr>
 
<tr><td><var>[[BLOWPG_parameter|BLOWPG]]</var></td>
<td><var>[[EXTNADD_parameter|EXTNADD]]</var> </td>
<td><var>[[OINENTRY_parameter|OINENTRY]]</var></td></tr>
 
<tr><td><var>[[BQLEN_parameter|BQLEN]]</var></td>
<td><var>[[EXTNDEL_parameter|EXTNDEL]]</var> </td>
<td><var>[[OINODES_parameter|OINODES]]</var></td></tr>
 
<tr><td><var>[[BREUSE_parameter|BREUSE]]</var></td>
<td><var>[[HIGHSORT_parameter|HIGHSORT]]</var> </td>
<td><var>[[OVFLADD_parameter|OVFLADD]]</var></td></tr>
 
<tr><td><var>[[BREUSED_parameter|BREUSED]]</var></td>
<td><var>[[MSTRADD_parameter|MSTRADD]]</var> </td>
<td><var>[[OVFLDEL_parameter|OVFLDEL]]</var></td></tr>
 
<tr><td><var>[[CRETRIES parameter|CRETRIES]]</var></td>
<td><var>[[MSTRDEL_parameter|MSTRDEL]]</var> </td>
<td><var>[[SPILLADD_parameter|SPILLADD]]</var></td></tr>
 
<tr><td><var>[[DHIGHPG_parameter|DHIGHPG]]</var></td>
<td><var>[[OIDEPTH_parameter|OIDEPTH]]</var> </td>
<td><var>[[SPILLDEL_parameter|SPILLDEL]]</var></td></tr>
</table>
</table>
<p>Other file-related parameters:                    </p>
 
<table>
<table>
<tr><th colspan="3">Other file-related parameters</th></tr>
<caption>Other file-related parameters</caption>
<tr><th><var>DACTIVE </var></th><td>FILEORG </td><td>HASHKEY</td></tr>
<tr><td><var>[[DACTIVE_parameter|DACTIVE]]</var></td>
<tr><th><var>DDNAMES (DISPLAY command option) </var></th><td>FISTAT </td><td>IVERIFY</td></tr>
<td><var>[[FILEORG_parameter|FILEORG]]</var> </td>
<tr><th><var>FICREATE </var></th><td>FITRANS</td><td>SORTKEY</td></tr>
<td><var>[[HASHKEY_parameter|HASHKEY]]</var></td></tr>
<tr><th><var>FIFLAGS </var></th><td>FOPT </td><td>VERIFY</td></tr>
 
<tr><th><var>FIFORMAT </var></th><td>FRCVOPT</td><td></td></tr>
<tr><td>DDNAMES (<var>[[DISPLAY_FILE_command|DISPLAY]]</var> command option)</td>
<td><var>[[FISTAT_parameter|FISTAT]]</var> </td>
<td><var>[[IVERIFY_parameter|IVERIFY]]</var></td></tr>
 
<tr><td><var>[[FICREATE_parameter|FICREATE]]</var> </td>
<td><var>[[FITRANS_parameter|FITRANS]]</var></td>
<td><var>[[SORTKEY_parameter|SORTKEY]]</var></td></tr>
 
<tr><td><var>[[FIFLAGS_parameter|FIFLAGS]]</var> </td>
<td><var>[[FOPT_parameter|FOPT]]</var> </td>
<td><var>[[VERIFY_parameter|VERIFY]]</var></td></tr>
 
<tr><td><var>[[FIFORMAT_parameter|FIFORMAT]]</var> </td>
<td><var>[[FRCVOPT_parameter|FRCVOPT]]</var></td>
<td></td></tr>
</table>
</table>
<p>The default setting of X'BFFF' makes all file parameters available to any user of the file.  </p>
<p>
<p class="note"><b>Note:</b> The following restriction applies for certain File Management facilities and Workshop/204 facilities such as Screen Painter and Procedure Editor: if you open a file without view file parameter security, you might not be able to execute commands against that file.</p>
The default setting (X'BFFF') makes all file parameters available to any user of the file.  </p>
[[Category: CREATE Parameters]]
<p class="note"><b>Note:</b> The following restriction applies for certain file management facilities and Workshop/204 facilities such as Screen Painter and Procedure Editor: if you open a file without view file parameter security, you might not be able to execute commands against that file.</p>
 
[[Category:CREATE parameters]]
[[Category:File parameters]]
[[Category:File parameters]]
[[Category:Parameters]]
[[Category:Parameters]]

Latest revision as of 23:39, 15 December 2020

Default file privileges

Summary

Default value
X'BFFF'
Parameter type
File
Where set
During file creation, or reset by file manager and system manager
Related products
All
Introduced
Model 204 V2.1 or earlier

Description

The default user privileges for a public or semi-public file

Valid settings of PRIVDEF are (options can be summed):

SettingAllows...
X'8000'File manager privileges.
X'4000' Record security override.
X'2000' Updating of data with ad hoc requests.
X'1000' Changes, other than deletions, to internal procedures.
X'0800' Updating of data with internal procedures.
X'0400' Retrieval of data with ad hoc requests.
X'0200' DISPLAY, echoing, and copying of internal procedures.
X'0100' Retrieval of data with internal procedures.
X'0080' Updating of data with external procedures.
X'0040' Retrieval of data with external procedures.
X'0020' INCLUDE of internal procedures.
X'0010' Definition of internal procedures.
X'0008' Deletion of internal procedures.
X'0001' Allows access (VIEW) to all file related parameters. If this bit is off, access to all file parameters, with the exception of CURFILE, is disallowed.

For only a permanent file group:

X'0004'Updating of data with procedures from the designated procedure file.
X'0002'Retrieval of data with procedures from the designated procedure file.

The file manager or the system manager can use the RESET PRIVDEF command to set the privilege-controlling bit of PRIVDEF to 1. For information on the transformation of PRIVDEF parameters in the password table, see Determining file and group privileges.

The parameters affected by this feature are the following:

Security-related parameters
ADDLVL PRIVDEF SECTY
LOGONENQ READLVL SELLVL
OPENCTL RECSCTY UPDTLVL
PRCLDEF
File size statistics parameters
ASIZE BRESERVE FREESIZE
ASTRPPG BSIZE FVFPG
ATRPG CSIZE MVFPG
BPGPMSTR DPGSRES PDSIZE
BPGPOVFL DRESERVE PDSTRPPG
BRECPPG DSIZE
File performance statistics parameters
ARETRIES DPGSUSED OILEAVES
BEXTOVFL EOVFLADD OILPACT
BHIGHPG EOVFLDEL OINBYTES
BLOWPG EXTNADD OINENTRY
BQLEN EXTNDEL OINODES
BREUSE HIGHSORT OVFLADD
BREUSED MSTRADD OVFLDEL
CRETRIES MSTRDEL SPILLADD
DHIGHPG OIDEPTH SPILLDEL
Other file-related parameters
DACTIVE FILEORG HASHKEY
DDNAMES (DISPLAY command option) FISTAT IVERIFY
FICREATE FITRANS SORTKEY
FIFLAGS FOPT VERIFY
FIFORMAT FRCVOPT

The default setting (X'BFFF') makes all file parameters available to any user of the file.

Note: The following restriction applies for certain file management facilities and Workshop/204 facilities such as Screen Painter and Procedure Editor: if you open a file without view file parameter security, you might not be able to execute commands against that file.