PRIVDEF parameter: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 12: Line 12:
<dd><var class="product">Model 204 V6.1</var> or earlier
<dd><var class="product">Model 204 V6.1</var> or earlier
</dl>
</dl>
==Description==
==Description==
<p>The default user privileges for a public or semi-public file</p>
<p>The default user privileges for a public or semi-public file</p>
<p>Valid settings of PRIVDEF are (options can be summed):</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><th>Setting</th><th>Allows...</th></tr>
Line 23: Line 24:
<tr><th align="right"><var>X'0800'</var></th><td>Updating of data with internal procedures.</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'0400'</var></th><td>Retrieval of data with ad hoc requests.</td></tr>
<tr><th align="right"><var>X'0200'</var></th><td>DISPLAY, echoing, and copying of internal procedures.</td></tr>
<tr><th align="right"><var>X'0200'</var></th><td><var>DISPLAY</var>, echoing, and 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'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'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'0040'</var></th><td>Retrieval of data with external 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'0020'</var></th><td><var>INCLUDE</var> 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'0010'</var></th><td>Definition of internal procedures.</td></tr>
<tr><th align="right"><var>X'0008'</var></th><td>Deletion of internal procedures.</td></tr>
<tr><th align="right"><var>X'0008'</var></th><td>Deletion of 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'0001'</var></th><td>Access to file related parameters. The file parameters <var>CURFILE</var> and <var>CURPRIV</var> are not affected by this setting. </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>
Line 37: Line 38:
<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 class="product">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. The <var>CURFILE</var> and <var>CURPRIV</var> parameters are not affected by this feature and are available to all users. (For information on the transformation of <var>PRIVDEF</var> parameters in the password table, refer to the <var class="product">Model&nbsp;204 File Manager's Guide</var>).</p>
<p>
The parameters affected by this feature are the following:</p>
   
   
<table>
<table>
Line 74: Line 77:
<caption>Other file-related parameters</caption>
<caption>Other file-related parameters</caption>
<tr><td>DACTIVE</td><td>FILEORG </td><td>HASHKEY</td></tr>
<tr><td>DACTIVE</td><td>FILEORG </td><td>HASHKEY</td></tr>
<tr><td>DDNAMES (DISPLAY command option)</td><td>FISTAT </td><td>IVERIFY</td></tr>
<tr><td>DDNAMES (<var>DISPLAY</var> command option)</td><td>FISTAT </td><td>IVERIFY</td></tr>
<tr><td>FICREATE </td><td>FITRANS</td><td>SORTKEY</td></tr>
<tr><td>FICREATE </td><td>FITRANS</td><td>SORTKEY</td></tr>
<tr><td>FIFLAGS </td><td>FOPT </td><td>VERIFY</td></tr>
<tr><td>FIFLAGS </td><td>FOPT </td><td>VERIFY</td></tr>
<tr><td>FIFORMAT </td><td>FRCVOPT</td><td></td></tr>
<tr><td>FIFORMAT </td><td>FRCVOPT</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>The default setting (X'BFFF') makes all file parameters available to any user of the file.  </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>
<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:CREATE parameters]]
[[Category:File parameters]]
[[Category:File parameters]]
[[Category:Parameters]]
[[Category:Parameters]]

Revision as of 02:06, 11 June 2013

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 V6.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'Access to file related parameters. The file parameters CURFILE and CURPRIV are not affected by this setting.

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. 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 Model 204 File Manager's Guide).

The parameters affected by this feature are the following:

Security-related parameters
ADDLV PRIVDEF SECTY
LOGONENQ READLVL SELLVL
OPENCTL RECSCTY UPDTLVL
PRCLDEF
File size statistics parameters
ASIZEBRESERVEFREESIZE
ASTRPPGBSIZE FVFPG
ATRPGCSIZE MVFPG
BPGPMSTRDPGSRES PDSIZE
BPGPOVFLDRESERVEPDSTRPPG
BRECPPGDSIZE
File performance statistics parameters
ARETRIESDPSUSED OILEAVES
BEXTOVFLEOVFLADD OILPACT
BHIGHPGEOVFLDEL OINBYTES
BLOWPGEXTNADD OINENTRY
BQLENEXTNDEL OINODES
BREUSEHIGHSORT OVFLADD
BREUSEDMSTRADD OVFLDEL
CRETRIESMSTRDEL SPILLADD
DHIGHPGOIDEPTH SPILLDEL
Other file-related parameters
DACTIVEFILEORG HASHKEY
DDNAMES (DISPLAY command option)FISTAT IVERIFY
FICREATE FITRANSSORTKEY
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.