ibm-information-center/dist/eclipse/plugins/i5OS.ic.rbam6_5.4.0.1/defau.htm

108 lines
5.6 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="Set default public authority" />
<meta name="abstract" content="When objects are created in a library, the public authority for the object will, by default, be set by using the CRTAUT value of the library." />
<meta name="description" content="When objects are created in a library, the public authority for the object will, by default, be set by using the CRTAUT value of the library." />
<meta name="DC.subject" content="authority, default for newly created object, object, default public authority" />
<meta name="keywords" content="authority, default for newly created object, object, default public authority" />
<meta name="DC.Relation" scheme="URI" content="uslib.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="defau" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Set default public authority</title>
</head>
<body id="defau"><a name="defau"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Set default public authority</h1>
<div><p>When objects are created in a library, the public authority for
the object will, by default, be set by using the CRTAUT value of the library.</p>
<div class="section"><p>By specifying the following:</p>
<pre>CRTLIB LIB(TESTLIB) CRTAUT(*USE) AUT(*LIBCRTAUT)</pre>
<p>The library TESTLIB is created. All objects created into library
TESTLIB will, by default, have public authority of *USE. The public authority
for library TESTLIB is determined by the CRTAUT value of library QSYS.</p>
<p>By
specifying the following:</p>
<pre>CRTDTAARA DTAARA(TESTLIB/DTA1) TYPE(*CHAR) +
AUT(*LIBCRTAUT)
CRTDTAARA DTAARA(TESTLIB/DTA2) TYPE(*CHAR) +
AUT(*EXCLUDE)</pre>
<p>Data area DTA1 is created into library TESTLIB. The public
authority of DTA1 is *USE based on the CRTAUT value of library TESTLIB.</p>
<p>Data
area DTA2 is created into library TESTLIB. The public authority of DTA2 is
*EXCLUDE. *EXCLUDE was specified on the AUT parameter of the <span class="cmdname">Create
Data Area (CRTDTAARA)</span> command.</p>
<p>An authorization list can also
be used to secure an object when it is created into a library.</p>
<p>By specifying
the following:</p>
<pre>CRTAUTL AUTL(PAYROLL)
CRTLIB LIB(PAYLIB) CRTAUT(PAYROLL) +
AUT(*EXCLUDE)</pre>
<p>An authorization list called PAYROLL is created. Library PAYLIB
is created with the public authority of *EXCLUDE. By default, an object created
into library PAYLIB is secured by authorization list PAYROLL.</p>
<p>By specifying
the following:</p>
<pre>CRTPF FILE(PAYLIB/PAYFILE) +
AUT(*LIBCRTAUT)
CRTPF FILE(PAYLIB/PAYACC) +
AUT(*CHANGE)</pre>
<p>File PAYFILE is created into library PAYLIB. File PAYFILE
is secured by authorization list PAYROLL. The public authority of file PAYFILE
is set to *AUTL as part of the <span class="cmdname">Create Physical File (CRTPF)</span> command.
*AUTL indicates that the public authority for file PAYFILE is taken from
the authorization list securing file PAYFILE, which is authorization list
PAYROLL.</p>
<p>File PAYACC is created into library PAYLIB. The public authority
for file PAYACC is *CHANGE since it was specified on the AUT parameter of
the <span class="cmdname">Create Physical File (CRTPF)</span> command. </p>
<div class="note"><span class="notetitle">Note:</span> The
*LIBCRTAUT value of the AUT parameter that exists on most CRT commands indicates
that the public authority for the object is set to the CRTAUT value of the
library that the object is being created into.</div>
<p>The CRTAUT value on
the library specifies the default authority for public use of the objects
created into the library. These possible values are: </p>
<dl><dt class="dlterm">*SYSVAL</dt>
<dd>The public authority for the object being created is the value specified
in system value QCRTAUT</dd>
<dt class="dlterm">*ALL</dt>
<dd>All public authorities</dd>
<dt class="dlterm">*CHANGE</dt>
<dd>Change authority</dd>
<dt class="dlterm">*USE</dt>
<dd>Use authority</dd>
<dt class="dlterm">*EXCLUDE</dt>
<dd>Exclude authority</dd>
<dt class="dlterm">authorization list name</dt>
<dd>The authorization list secures the object</dd>
</dl>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="uslib.htm" title="A library is an object used to group related objects and to find objects by name. Thus, a library is a directory to a group of objects.">Use libraries</a></div>
</div>
</div>
</body>
</html>