ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbp_5.4.0.1/rbafosfile.htm

91 lines
6.9 KiB
HTML

<?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="concept" />
<meta name="DC.Title" content="Share database files in the same job or activation group" />
<meta name="abstract" content="By default, the database management system lets one file be read and changed by many users at the same time. However, you can share the database files in the same job or activation group through the SHARE parameter." />
<meta name="description" content="By default, the database management system lets one file be read and changed by many users at the same time. However, you can share the database files in the same job or activation group through the SHARE parameter." />
<meta name="DC.subject" content="sharing, file, in the same job, in the same activation group, database file, sharing in a job, SHARE parameter, sharing in an activation group, database, in the same job, database, in the same activation group, SHARE (Share) parameter, improving performance, parameter, SHARE" />
<meta name="keywords" content="sharing, file, in the same job, in the same activation group, database file, sharing in a job, SHARE parameter, sharing in an activation group, database, in the same job, database, in the same activation group, SHARE (Share) parameter, improving performance, parameter, SHARE" />
<meta name="DC.Relation" scheme="URI" content="rbafopreopn.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoopenc.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoiocon.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoclose.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="rbafosfile" />
<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>Share database files in the same job or activation group</title>
</head>
<body id="rbafosfile"><a name="rbafosfile"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Share database files in the same job or activation group</h1>
<div><p>By default, the database management system lets one file be read
and changed by many users at the same time. However, you can share the database
files in the same job or activation group through the SHARE parameter.</p>
<div class="p">You can share a file in the same job or activation group by opening the
database file: <ul><li>More than once in the same program.</li>
<li>In different programs in the same job or activation group.</li>
</ul>
<div class="note"><span class="notetitle">Note:</span> For more information about open sharing in the Integrated
Language Environment<sup>®</sup>, see the <a href="../books/sc415606.pdf" target="_blank">ILE Concepts</a><img src="wbpdf.gif" alt="Link to PDF" /> book.</div>
</div>
<p>The SHARE parameter on the create file, change file, and override database
file commands allow sharing in a job or activation group, including sharing
the file, its status, its positions, and its storage area. Sharing files in
the job or activation group can improve performance by reducing the amount
of main storage needed and by reducing the time needed to open and close the
file.</p>
<p>Using the SHARE(*YES) parameter lets two or more programs running in the
same job or activation group share an open data path (ODP). An open data path
is the path through which all input/output operations for the file are performed.
In a sense, it connects the program to a file. If you do not specify the SHARE(*YES)
parameter, a new open data path is created every time a file is opened. If
an active file is opened more than once in the same job or activation group,
you can use the active ODP for the file with the current open of the file.
You do not have to create a new open data path.</p>
<p>This reduces the amount of time required to open the file after the first
open, and the amount of main storage required by the job or activation group.
SHARE(*YES) must be specified for the first open and other opens of the same
file for the ODP to be shared. A well-designed (for performance) application
normally shares an ODP with files that are opened in multiple programs in
the same job or activation group.</p>
<div class="p">Specifying SHARE(*NO) tells the system not to share the ODP for a file.
Normally, this is specified only for those files that are seldom used or require
unique processing in specific programs. <div class="note"><span class="notetitle">Note:</span> A high-level language program
processes an open or a close operation as if the file were not being shared.
You do not specify that the file is being shared in the high-level language
program. You indicate that the file is being shared in the same job or activation
group through the SHARE parameter. The SHARE parameter is specified only on
the create, change, and override database file commands.</div>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbafoopenc.htm">Open considerations for files shared in a job or activation group</a></strong><br />
Listed here are the considerations for opening a database file that is shared in the same job or activation group.</li>
<li class="ulchildlink"><strong><a href="rbafoiocon.htm">Input/output considerations for files shared in a job or activation group</a></strong><br />
Listed here are the considerations for processing a database file that is shared in the same job or activation group.</li>
<li class="ulchildlink"><strong><a href="rbafoclose.htm">Close considerations for files shared in a job or activation group</a></strong><br />
Listed here are the considerations for closing a database file that is shared in the same job or activation group.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafopreopn.htm" title="These topics describe the file processing parameters and other methods or considerations that can affect database file processing.">Database file processing: Runtime considerations</a></div>
</div>
</div>
</body>
</html>