58 lines
3.9 KiB
HTML
58 lines
3.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="copyright" content="(C) Copyright IBM Corporation 2005" />
|
|
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
|
|
<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="Close considerations for files shared in a job" />
|
|
<meta name="abstract" content="The processing done when a program closes a shared file depends on whether other programs currently share the open data path." />
|
|
<meta name="description" content="The processing done when a program closes a shared file depends on whether other programs currently share the open data path." />
|
|
<meta name="DC.subject" content="close considerations, shared file, processing, close, shared files, sharing file, file, sharing" />
|
|
<meta name="keywords" content="close considerations, shared file, processing, close, shared files, sharing file, file, sharing" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3share.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbal3closec" />
|
|
<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>Close considerations for files shared in a job</title>
|
|
</head>
|
|
<body id="rbal3closec"><a name="rbal3closec"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Close considerations for files shared in a job</h1>
|
|
<div><p>The processing done when a program closes a shared file depends
|
|
on whether other programs currently share the open data path.</p>
|
|
<p>If there are other programs, the main function that is performed is to
|
|
detach from the file the program that is requesting the close. For database
|
|
files, the program also releases any record locks that it holds.
|
|
The program will not be able to use the shared file unless it opens it again.
|
|
All other programs sharing the file are still attached to the ODP and can
|
|
perform I/O operations.</p>
|
|
<p>If the program closing the file is the last program sharing the file, then
|
|
the close operation performs all the functions it would if the file had not
|
|
been opened with the share option. This includes releasing any allocated
|
|
resources for the file and destroying the open data path.</p>
|
|
<p>The function provided by this last close operation is the function that
|
|
is required for recovering from certain run-time errors. If your application
|
|
is written to recover from such errors and it uses a shared file, this means
|
|
that all programs that are attached to the file when the error occurs must
|
|
close the file. This might require returning to previous programs in the call
|
|
stack and closing the file in each one of those programs.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3share.htm" title="File management on iSeries provides several levels of support for shared files. Files can be shared among many users, many jobs, or many programs within the same job.">Share files</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |