ibm-information-center/dist/eclipse/plugins/i5OS.ic.dm_5.4.0.1/rbal3applyovr.htm

108 lines
9.1 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="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="Apply overrides" />
<meta name="abstract" content="You can perform two general types of overrides, which are file overrides and overrides for program device entries." />
<meta name="description" content="You can perform two general types of overrides, which are file overrides and overrides for program device entries." />
<meta name="DC.Relation" scheme="URI" content="rbal3override.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3ovrfa.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3ovrfn.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3ovrnf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3ovrscp.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3call.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3exits.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3aosin.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3ovrsf2.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3clovr.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3secrf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3aofmcl.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3aowcp.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3ft.htm" />
<meta name="DC.Relation" scheme="URI" content="rbal3redirect.htm" />
<meta name="DC.Relation" scheme="URI" content="../books/sc415442.pdf" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal3applyovr" />
<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>Apply overrides</title>
</head>
<body id="rbal3applyovr"><a name="rbal3applyovr"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Apply overrides</h1>
<div><p>You can perform two general types of overrides, which are file
overrides and overrides for program device entries.</p>
<dl><dt class="dlterm">File overrides</dt>
<dd><div class="p">File overrides let you override the following things: <ul><li>File attributes</li>
<li>File names</li>
<li>File attributes and file names simultaneously</li>
<li>File open scope</li>
<li>File types <p>For more information about overriding file types, see <a href="rbal3redirect.htm#rbal3redirect">Redirect files</a>.</p>
</li>
</ul>
</div>
</dd>
<dt class="dlterm">Overrides for program device entries</dt>
<dd><p>Overrides for program device entries let you override the attribute
of an ICF file that provides the link between the application and each of
the remote servers or devices with which your program communicates. For more
information about overrides on program device entries, see the <a href="../books/sc415442.pdf" target="_blank">ICF Programming</a> <img src="wbpdf.gif" alt="Link to PDF" /> book.</p>
</dd>
</dl>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbal3ovrfa.htm">Override file attributes</a></strong><br />
Overriding file attributes is the simplest form of overriding a file.</li>
<li class="ulchildlink"><strong><a href="rbal3ovrfn.htm">Override file names</a></strong><br />
Overriding file names is another simple form that you change the file used by the program. This might be useful for files that you moved or renamed after the program compiled.</li>
<li class="ulchildlink"><strong><a href="rbal3ovrnf.htm">Override file names and file attributes</a></strong><br />
This form of overriding files is a combination of overriding file attributes and overriding file names. With this form of override, you can override the file that is to be used in a program and you can also override the attributes of the overriding file.</li>
<li class="ulchildlink"><strong><a href="rbal3ovrscp.htm">Override the scope of an open file</a></strong><br />
The open scope (OPNSCOPE) parameter on the appropriate override command enables you to change the scope of a file open operation. The values for the OPNSCOPE parameter can be either *JOB or *ACTGRPDFN (default).</li>
<li class="ulchildlink"><strong><a href="rbal3call.htm">How the server processes overrides</a></strong><br />
In the Integrated Language Environment<sup>®</sup>,
overrides can be scoped to the call level, the activation-group level (the
default), and the job level.</li>
<li class="ulchildlink"><strong><a href="rbal3exits.htm">Effect of exits on overrides: scenario</a></strong><br />
Exits (ENDPGM, RETURN, or abnormal exits) from a call operation delete overrides that are scoped to that call level. However, they do not delete overrides that are issued in that call level that are scoped to the activation group level or the job level.</li>
<li class="ulchildlink"><strong><a href="rbal3aosin.htm">Effect of TFRCTL on overrides: Scenario</a></strong><br />
The TFRCTL command replaces one program with another program at the same call level. The program to which control is transferred runs at the same call level as the program that contained the TFRCTL command. An override command in a program that transfers control to another program is not deleted during the transfer of control.</li>
<li class="ulchildlink"><strong><a href="rbal3ovrsf2.htm">Overrides to the same file at the same call level: scenario</a></strong><br />
When you enter two overrides for the same file name at the same call level, the second override replaces the first override. This allows you to replace an override at a single call level, without having to delete the first override.</li>
<li class="ulchildlink"><strong><a href="rbal3clovr.htm">CL program overrides</a></strong><br />
If a CL program overrides a file and then calls a high-level language program, the override remains in effect for the high-level language program. However, if a high-level language program calls a CL program that overrides a file, the server deletes the override automatically when control returns to the high-level language program.</li>
<li class="ulchildlink"><strong><a href="rbal3secrf.htm">Secure files against overrides</a></strong><br />
On occasion, you might want to prevent the person or program that calls your program from changing the file names or attributes you have specified. You can prevent additional file overrides by coding the SECURE(*YES) parameter on a file override command for each file that needs protection. This protects your file from overrides at lower call levels, the activation group level, and the job level.</li>
<li class="ulchildlink"><strong><a href="rbal3aofmcl.htm">Use a generic override for printer files</a></strong><br />
The OVRPRTF command allows you to have one override for all the printer files in your job with the same set of values. Without the generic override, you would need to do a separate override for each of the printer files.</li>
<li class="ulchildlink"><strong><a href="rbal3aowcp.htm">Apply overrides when compiling a program</a></strong><br />
Overrides can be applied at the time a program is being compiled for either of two purposes: to select the source file, or to provide external data definitions for the compiler to use in defining the record formats to be used on I/O operations.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3override.htm" title="You can use overrides to temporarily change a file name, a device name associated with the file, or some of the other attributes of a file.">Use overrides</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbal3ft.htm">File types</a></div>
<div><a href="rbal3redirect.htm" title="File redirection lets you use overrides to direct data input or output to a device of a different type; for example, to send data that was intended for a diskette to a printer instead. This use of overrides requires somewhat more foresight than the override applications listed above, because the program must be able to accommodate the different characteristics of the two devices involved.">Redirect files</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../books/sc415442.pdf" target="_blank">ICF Programming PDF</a></div>
</div>
</div>
</body>
</html>