70 lines
5.8 KiB
HTML
70 lines
5.8 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="Allocate file resources" />
|
|
<meta name="abstract" content="Resources are those parts of the server that are required by a job or task, including main storage, devices, the processing unit, programs, files, libraries, and folders. When you write a high-level language program, you should be aware of what resources the server has allocated for each file type." />
|
|
<meta name="description" content="Resources are those parts of the server that are required by a job or task, including main storage, devices, the processing unit, programs, files, libraries, and folders. When you write a high-level language program, you should be aware of what resources the server has allocated for each file type." />
|
|
<meta name="DC.subject" content="file, resources, allocating, resource, allocating, file resource, high-level language (HLL), programs, allocating resources, HLL (high-level language), allocating resources, command, CL, Allocate Object (ALCOBJ), ALCOBJ (Allocate Object), Allocate Object (ALCOBJ) command, ALCOBJ (Allocate Object) command, Allocate Object (ALCOBJ) command, command, CL, ALCOBJ (Allocate Object), Allocate Object (ALCOBJ), object, file resources, open operation, operation, requiring resource allocation, open, acquire, acquire operation" />
|
|
<meta name="keywords" content="file, resources, allocating, resource, allocating, file resource, high-level language (HLL), programs, allocating resources, HLL (high-level language), allocating resources, command, CL, Allocate Object (ALCOBJ), ALCOBJ (Allocate Object), Allocate Object (ALCOBJ) command, ALCOBJ (Allocate Object) command, Allocate Object (ALCOBJ) command, command, CL, ALCOBJ (Allocate Object), Allocate Object (ALCOBJ), object, file resources, open operation, operation, requiring resource allocation, open, acquire, acquire operation" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3workwith.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3fileresalloc.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3fileresource.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3howalloc.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbal3waitf" />
|
|
<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>Allocate file resources</title>
|
|
</head>
|
|
<body id="rbal3waitf"><a name="rbal3waitf"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Allocate file resources</h1>
|
|
<div><p>Resources are those parts of the server that are required
|
|
by a job or task, including main storage, devices, the processing unit, programs,
|
|
files, libraries, and folders. When you write a high-level language program,
|
|
you should be aware of what resources the server has allocated for each file
|
|
type.</p>
|
|
<p>Normally, the server will perform the allocation whenever a requested operation
|
|
requires it. For example, the server allocates resources for each file that
|
|
is used in a program when the file is opened.</p>
|
|
<p>To ensure that all of the resources that are needed by a program are available
|
|
before the program is run, you can use the <a href="../cl/alcobj.htm">Allocate Object (ALCOBJ)</a> CL command in the job before
|
|
you run the program. In particular, the ALCOBJ command can allocate database
|
|
files and most devices.</p>
|
|
<div class="p">The following operations are examples of operations that require resource
|
|
allocation: <ul><li>Open</li>
|
|
<li>Acquire</li>
|
|
<li>Starting a program on a remote server</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rbal3fileresalloc.htm">Overview of file resource allocation</a></strong><br />
|
|
When a high-level language program uses a file, several operations require that the server allocate the resources that are needed to perform that operation. The server generally does this to ensure that multiple users do not use the file in conflicting ways.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3fileresource.htm">File resources that must be allocated</a></strong><br />
|
|
The file resources that the server must allocate depend on the type of file and the operation.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3howalloc.htm">How the server allocates resources</a></strong><br />
|
|
When it allocates resources, the server waits for a predefined time if the resources are not immediately available. If the resources do not become available within the time limit, the server generates an error.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3workwith.htm" title="This topic describes the various tasks that can be used to ensure that files are used effectively.">Work with database files</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |