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

92 lines
5.3 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="reference" />
<meta name="DC.Title" content="WAITFILE parameter" />
<meta name="abstract" content="The WAITFILE parameter allows you to specify whether and how long a program waits for resources." />
<meta name="description" content="The WAITFILE parameter allows you to specify whether and how long a program waits for resources." />
<meta name="DC.Relation" scheme="URI" content="rbam6expand.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="rbam6waitfileexpand" />
<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>WAITFILE parameter</title>
</head>
<body id="rbam6waitfileexpand"><a name="rbam6waitfileexpand"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">WAITFILE parameter</h1>
<div><p>The WAITFILE parameter allows you to specify whether and how long
a program waits for resources.</p>
<div class="section"><p>You use the WAITFILE parameter to specify the maximum number of
seconds that a program waits for the following:</p>
<ul><li>File resources to be allocated when the file is opened</li>
<li>Session resources when the evoke function is issued for an APPC device</li>
<li>The device to be allocated when an acquire operation is performed to read
the file</li>
</ul>
<p>If the program must wait, it will be placed in a wait state until
the resources are available or until the wait time expires. If two or more
file resources are needed and are not available because they are being used
by different system users, the acquisition of each resource might require
a wait. This maximum is applied to each wait.</p>
<p>The length of the wait
can be specified in this parameter, or the default wait time of the class
that applies to the object can be used. If the file resources cannot be allocated
in the specified number of seconds, an error message is returned to the program.</p>
<p>The
file resources that must be allocated depend on the type of file being opened.
File resources consist of the following.</p>
<ul><li>For device files that are not spooled (SPOOL(*NO)), the file resources
include the file description and device description. Because the device description
must be allocated, the device itself must also be available.</li>
<li>For device files that are spooled (SPOOL(*YES)), the file resources include
the file description, the specified output queue, and storage in the system
for the spooled data. Because the data is spooled, the device description
(and thus the device itself) need not be available.</li>
<li>For database files, the file resources consist of the file and member
data. The file's associated member paths are not accessed, and therefore,
the system does not wait for them. A file open exception error can occur before
the WAITFILE time has expired when an access path is not available (for example,
when the access path is being rebuilt). <p>The <span class="cmdname">Allocate
Object (ALCOBJ)</span> command can be used to allocate specific file resources
before the file is opened.</p>
</li>
</ul>
<p>The session resources that were allocated for an APPC device conversation
can be lost between the time the application issues a detach function or receives
a detach indication and the time another evoke function is issued. If the
session resource is lost, this parameter is used to determine the length of
time that the system waits for another session resource.</p>
</div>
<div class="section"><h4 class="sectiontitle">Values allowed</h4><dl><dt class="dlterm">*IMMED</dt>
<dd>The program does not wait; when the file is opened, an immediate allocation
of the file resources is required.</dd>
<dt class="dlterm">*CLS</dt>
<dd>The default wait time specified in the class description is used as the
wait time for the file resources to be allocated.</dd>
<dt class="dlterm"><var class="varname">1-32767</var></dt>
<dd>Specify the number of seconds that the program waits for the file resources
to be allocated.</dd>
</dl>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbam6expand.htm" title="This section contains the expanded descriptions of some of the parameters commonly used in the CL commands.">Commonly used parameters</a></div>
</div>
</div>
</body>
</html>